Hi, not that I mind much about these calculations, you can go here for a rough idea.
https://pc-builds.com/bottleneck-calculator/
For either CPU you'll be fine, But I would get the 7700X if all you want is gaming.
=OR=
If you already have a AM4, consider the 5800X3D, you can't go wrong with this one for sure!
Good Luck
The Englishman