Gaming speed, cores and clocks
The Core i7-7700K and the Ryzen 5 2600 are within a few percent of each other for gaming. In a game, you will not see the difference.
The Core i7-7700K has 4 cores and 8 threads, and the Ryzen 5 2600 has 6 cores and 12 threads. The extra cores of the Ryzen 5 2600 help with video editing, streaming while you play and heavy multitasking more than with the game itself. Boost clocks are 4.5 GHz and 3.9 GHz.