If I were buying a machine to play games on, I would chose neither . . . I would buy a desktop so it has good performance.
If it absolutely had to be a laptop I would save more and buy something with a gaming card in it.
The 740m will be a better gaming rig for non-cpu bound games as it's a faster card in general, but don't expect miracles with either.