For gaming, the second one is better. Chances are you can upgrade the ram on the second one and likely add an ssd if you want. Those are the only perks to the first one listed, it's slightly more well rounded but the second has a better cpu and gpu. Most games run just fine on 8gb of ram and while an ssd makes the laptop feel 'snappier' and can offer improved load times, it's not going to increase fps in games.