Gaming speed, cores and clocks
The Ryzen 9 9900X and the Ryzen 9 7900X are within a few percent of each other for gaming. In a game, you will not see the difference.
The Ryzen 9 9900X has 12 cores and 24 threads, and the Ryzen 9 7900X has 12 cores and 24 threads. Core counts are the same, so cache size and clock speed decide the difference. Boost clocks are 5.6 GHz and 5.6 GHz.