It depends on the games you will play and what you might want for a future upgrade.
Most games depend on the performance if the single master thread.
For them, both processors are somewhat equal.
This would include mmo, strategy and sims.
OTOH fast action shooters are more dependent on the graphics card.
For multiplayer games where more than 2-3 threads are useful, the nod goes to ryzen.
I find the I5-7500/7600 chips in a nowhere land so far as gaming goes.
They are comparable to I3 7xxx chips and even for G4620 chips which cost less.
Then, spending some 10% more buys you a I5-7600K which can be overclocked to the 5.0 range.
One rule of thumb for a balanced gamer would be to budget 2x the cost of the cpu for the graphics card.
Your...