johnnypdx23 :
I've done my research on this one and the i5 is a better bang for your buck. The i7 does outperform it, but not be enough for a dedicated gaming machine for the price increase.
What research? The i5-8500K doesn't exist?
You've got an i5-8400, or i5-8600K
The 8600K is a nice chip, but it's +$70 over the 8400 for a higher base/boost frequency and overclocking ability.
Given the 8400 would be wasted on a Z370 board, and that's all that's available right now; you're down to 7700K vs 8600K
I'd opt for the 7700K myself, given the i5-8600k lacks hyper-threading, you're running 6 cores only.
The 7700K is 4core + HT (8threads), higher base and boost speeds etc.
If the budget allows, the i7-8700K would be worth considering; but given the options presented, I'm assuming that's a little out of reach budget-wise?