Hi,
I always suggest better GPU than CPU, but in this case, i would go with the i5 + R9 280X. It will give you more room for future GPU upgrades, while with the FX 6300 the R9 290 is highest you can go, and i believe you will need to overclock the FX 6300 in some games, to eliminate any bottlenecks