Gaming speed, cores and clocks
The Ryzen 7 7700X and the Ryzen 7 5700X3D 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 Ryzen 7 5700X3D has 8 cores and 16 threads. Core counts are the same, so cache size and clock speed decide the difference. Boost clocks are 5.4 GHz and 4.1 GHz.