Let me tell you the differences between the two.
-Intel Pentium G3258:
Has only Two Cores, Clocked at 3.2Ghz (Though you should be able to OC it to 4.5 no problem), has 3 MB of L3 Cache, and priced at $70.
(WARNING) You will need a Z87 or Z97 Chipset on your motherboard. If you don't, you cannot Overclock it. And most of those Motherboards are easily $100+.
-AMD Athlon X4 860K:
Has Four Cores, Clocked at 3.7 Ghz (OCing to 4.5 Ghz+ is possible), has 4MB of L2 cache, and is priced at $85.
(TIP) Best of All, You don't need a specific FM2+ Chipset to overclock it. Heck, Grab a MSI A78M-E35 (Which is only $60) and you can OC the 860K no problem.
- CPU Benchmark Comparison:
=2362&cmp[]=2267]http://www.cpubenchmark.net/compare.php?cmp[]=2362&cmp[]=2267
- Conclusion:
Regardless, Both of them will run great with a R9 270X, but the Athlon X4 860K is the better bet. for only $15 More you are getting a slightly faster clocked CPU, with more Cores (Though people will argue they are weaker), and much more Cache.
Hope this Helps.