AMD 7700X is probably factory overclocked 7700, it would be cheaper to just buy 7700. Probably the only difference is that some of the 7700 chips cannot guaranty same clocks and stability when overclocked to 7700X specs.
The current price difference on Amazon is $5. But the 7700X doesn't include a cooler. If you're not planning to use the AMD cooler, may as well pay an extra $5 and get a processor that binned better (probably), not have the extra cooler, and you can fiddle with voltage and TDP/power limits from there.
Depending on your cooling, having a 100Mhz higher max clock could be worth $5.
I know someone that bought an AMD CPU but it was a factory-sealed empty box. Turned out sending out a cooler-free product in the same packaging allowed for the CPU to be taken out of the box's window without breaking the seal. Hopefully they've updated the packaging.
I don't know about the 7700, but I have a 7900 and it makes the 7900X look utterly ridiculous in comparison, especially because it comes with a decent cooler (incl. RGB if people care for that). So yeah, I'd not waste extra money on the X variant. (Though for games, the 7800X3D is probably the best of the bunch)
Depending on your cooling, having a 100Mhz higher max clock could be worth $5.