i5-2320 is a better choice.
i5-2320: 6mb L3 Cache, 32nm (less is better), 3.3ghz (less ghz but more cache)
amd a10-5700, 4mb L2 cache (L3 cache is better), 3.4ghz, 32nm
Only place where the i5-2320 wins is that it has 6mb Level 3 cache whereas the amd a10 5700 only had 4mb Level 2
The cache is usually far less important than you might think. AMD's loss is in CPU performance per core per Hz for various reasons.
As proof of the cache being less important than you might think, compare the FX-4170 (8MiB L3 cache), FX-4300 (4MiB L3 cache), and the A10-5800K (no L3 cache). They all have nearly identical performance in almost every workload despite the cache difference being the main difference between all of them (heck, it's the only CPU performance difference between the FX-4300 and the A10-5800K).