FX-6300 won't work; that's a Socket AM3+ CPU, & those Athlon X4/A-series APUs are Socket FM2+. Completely incompatible, you'd have to get a new motherboard.
That being said...the FX would be a better CPU, but again you'd have to buy a new motherboard, then backup your data & reinstall Windows.