The first one is best for gaming, the second one is better if you want to use software programs, such as Photoshop, Autocad etc.
since i'm a gamer, i recommend the firrst one, since the graphics are better, and 8GB RAM is more than sufficient for gaming.