Depends what you need.
AMD's APU's have proven to be very much superior GPU wise to Intels integrated GPU's, but still if you're looking for a gaming machine nothing can really touch discrete hardware when gaming at 1080p and above. At lower resolutions you might be able to get away with an APU depending on the game.
I would personally get the i5 3470, maybe overclock it a bit and pair it with a decent GPU.
CPU wise performance is still in Intels court, so if the tasks you do require fairly beefy cores, then the i5 3470 would be the better pick in that arena as well.