Gaming speed, cores and clocks
On our gaming index the Ryzen 5 7500F scores 68 and the Core i5-13400F scores 62, about 10% faster for gaming. That gap is small and mostly shows up at 1080p with a very fast graphics card.
The Ryzen 5 7500F has 6 cores and 12 threads, and the Core i5-13400F has 10 cores and 16 threads. The extra cores of the Core i5-13400F help with video editing, streaming while you play and heavy multitasking more than with the game itself. Boost clocks are 5 GHz and 4.6 GHz.