Gaming speed, cores and clocks
On our gaming index the Core i5-10500 scores 45 and the Core i7-8700K scores 43, about 5% faster for gaming. That gap is small and mostly shows up at 1080p with a very fast graphics card.
The Core i5-10500 has 6 cores and 12 threads, and the Core i7-8700K has 6 cores and 12 threads. Core counts are the same, so cache size and clock speed decide the difference. Boost clocks are 4.5 GHz and 4.7 GHz.