Gaming speed, cores and clocks
The Core i7-12700K and the Ryzen 7 8700G are within a few percent of each other for gaming. In a game, you will not see the difference.
The Core i7-12700K has 12 cores and 20 threads, and the Ryzen 7 8700G has 8 cores and 16 threads. The extra cores of the Core i7-12700K help with video editing, streaming while you play and heavy multitasking more than with the game itself. Boost clocks are 5 GHz and 5.1 GHz.