shadymnms :
Definitely the i7 setup. HD 520 is as about as powerful as a 940M. Just make sure to have PLENTY of ram and Dual Channel is a must!
I primarily only purchase used laptops. Reason being, for 500 USD I just got a i7 4700MQ (4 cores, 8 threads) and a GTX 770M with 3GB GDDR5.
No. That is false information.
It is the Intel HD Iris Pro Graphics 580 and Intel HD Iris Pro Graphics 6200 that are more powerful than the nVidia 940m. Those graphic cores are only in specific high end (and expensive) CPUs that are generally not found in laptops. The Intel HD 620 found in most Kaby Lake 7th generation CPUs is about equal to / slightly better than the nVidia 920m, That makes the Intel HD 520 less powerful than the nVidia 920m and the 840m. In fact, the Intel HD 520 is about equal to the nVidia 910m.
For graphics animation the GPU is rather important. I would definitely recommend getting the laptop with the i5-5500u & the 840m.