If gaming is important then choose the AMD A10-870P0 system. If general computer power and speed is more important then choose the Core i5-5200U system.
This is because the Core i5-5200U with HD Graphics 5500 runs cooler, quieter and is WAY quicker and more powerful for all normal computer tasks than the AMD A10-8700P. The Core i5 is also OK for casual gaming at low detail settings.
The AMD A10-8700P runs hotter and does everything slower except for gaming, as mentioned above.
If you absolutely MUST have both computing power and gaming power then you need a gaming laptop with Core i5-5200U (or better!) and GTX960M graphics included. You may find one at a clearance price you can afford if you shop around.
Another consideration for some users is battery life. The two systems you mentioned are likely to run longer on battery than any gaming laptop. This is because the discrete GTX 960M (or better) graphics chip will consume more power, but that's a sacrifice you must accept with any tru gaming laptop.