AMD offers more for your money, but Intel packs more performance per core. AMD will allow easy overclocking, but Intel has a lower TDP, meaning less heat and power draw. The AMD uses the most recent AM3+ socket, whereas the i5 uses LGA1155, which ended with the introduction of Haswell. Don't let that put you off too much as the i5 will still be good for years (as will the AMD), and you'll be able to buy components cheaply on the second-hand market. Both will do a fine job for gaming providing that you buy a good graphics card, which is FAR more important.
I prefer Intel CPUs for the lower TDP and per-core performance. Think about what's important to you now, what you might want in the future and go from there.