The i5 has a much stronger single threaded performance, so it is the best choice for gaming.
Cores and GHz aren't the best way to compare AMD and Intel CPUs since they are really different. It is best to check some benchmarks for real world performance.