It's easy bro, from what you wrote HP ENVY is better than DELL INSPIRON . HP ENVY got i7 processor and DELL INSPIRON only i5.
That's quite different bro
With 8gb RAM HP ENVY you can play any game that you want better than DELL INSPIRON that only got 6gb RAM.
by the way how much is your budget ?