Which is a better laptop?

Which is better the lenovo z510 specs:
Intel® Core™ i7-4702MQ Processor (6M Cache, up to 3.20)
6GB DDR3 RAM 1066MHz
NVIDIA GeForce GT 740M with 2 GB DDR3 dedicated

or the lenovo g510 specs:
Intel Core i7 4700QM 2.4GHz Processor
6 GB RAM
AMD 2 GB Dedicated Graphics Memory

First one better graphics card
i7 4702 is only consuming 1 watt more than the below one and is only.2 GHz slow

better take first one

Yep, first one