Gaming speed, cores and clocks
On our gaming index the Ryzen 7 5700 scores 60 and the Core i7-11700K scores 57, about 5% faster for gaming. That gap is small and mostly shows up at 1080p with a very fast graphics card.
The Ryzen 7 5700 has 8 cores and 16 threads, and the Core i7-11700K has 8 cores and 16 threads. Core counts are the same, so cache size and clock speed decide the difference. Boost clocks are 4.6 GHz and 5 GHz.