If you want the Overclocking capabilities for the future then you should choose the i7 4790k because it can be ran at much higher clock speeds using water cooled and has a lower TDP usage compared to the 8350 which Ex0rPl4net was telling you to get.
If you look here you can see the comparision with them both:
https://cpuboss.com/cpus/Intel-4790K-vs-AMD-FX-8350
If you want something which is good and at a cheaper price then you could get an i5 4670k or a 4690k and then overclock the crap outta it as I have a stock i5 4670k and i've had no problems with playing games on it at ultra such as BF4 and im using a GTX 780 Superclocked w/ACX Cooler so yeah, The only games i cant play on ultra are poorly optimised games such as watch dogs.
If you want to see the comparison with these 2 then look here:
https://cpuboss.com/cpus/Intel-Core-i...vs-Intel-4690K
Lastly, You could just look at this table and find the one which you want on there since this is to do with gaming performance on games:
https://cpuboss.com/cpus/Desktop-CPUs...rmance-4310750