If your plan is to work/game some older titles or newer light titles like Minecraft, i'd go with the 1st one. If your plans are to "hardcore gaming" i'd go with the 2nd because of the dedicated GPU.
PS:. (If you buy the 2nd one, consider doing a RAM upgrade. Just another 8GB stick would make a difference ;))