Gaming speed, cores and clocks
The Ryzen 7 7700X and the Core i9-12900K are within a few percent of each other for gaming. In a game, you will not see the difference.
The Ryzen 7 7700X has 8 cores and 16 threads, and the Core i9-12900K has 16 cores and 24 threads. The extra cores of the Core i9-12900K help with video editing, streaming while you play and heavy multitasking more than with the game itself. Boost clocks are 5.4 GHz and 5.2 GHz.