1 GB or 2GB, how does it matter :
For a single 1080p monitor, you do not need more than 1GB of memory on your video card. There are only a couple of games that could potentially use more than 1GB at 1080p (Crysis 2, Metro 2033, Grand Theft Auto IV), but those games aside from possibly Grand Theft Auto IV will be bottlenecked by the speed of any given GPU before the amount of RAM becomes an issue. These games would only run over 1GB when run on maximum settings, with very high Anti-Aliasing. In the case of Crysis and Metro, there is no single GPU that can do that. GTA IV is just so poorly coded that it requires something like 1.4GB of video RAM in order to run maxed out. 
For now 1GB is enough, only go for 2GB if you plan on gaming across multiple monitors, or you intend to keep your card for a very long time, in which case 2GB might be a little more "futureproof", though by the time games routinely start using more than 1GB at 1080p, most current cards would probably be obsolete.
Reasons why you should go for Nvidia 740M
Higher memory bandwidth	         28.8 GB/s	vs	14.4 GB/s	2x higher memory bandwidth
Better 3DMark06 score	                      1,873	vs	1,107.5	Around 70% better 3DMark06 score
Better 3DMark vantage graphics score  5,599	vs	3,384.5	More than 65% better 3DMark vantage graphics score
Slightly higher clock speed	           810 MHz	vs	775 MHz	Around 5% higher clock speed
More render output processors	            16	vs	8	Twice as many render output processors
Higher texture rate	                      25.9 GTexel/s	vs	18.6 GTexel/s	Around 40% higher texture rate
Wider memory bus	                              128 bit	vs	64 bit	2x wider memory bus
Slightly more texture mapping units             	32	vs	24	8 more texture mapping units
Slightly higher BioShock infinite framerate9.2 fps	vs	5.49 fps	Around 70% higher BioShock infinite framerate
I think due to some reasons you really like that HP pavillion if you do so just get it, There's no much difference
