HP has a better video card while Lenovo has better CPU. Both CPUs have TDP 35w. For browsing, movies and general use I would prefer Lenovo. For games (I know integrated cards are bad) but on low graphics HP is better.
Upon a quick overview of your options I can state that:
Because if its processor, the Lenovo G580 is a solid option, but you must note that it has an integrated graphics card, which won't allow you to play any modern games, if that interests you.
The other one, the HP Pavilion g6-2230sa is also a good solution, and it is more orientated towards gaming than the Lenovo G580 . It also provides more HDD space, so you can store more movies/music/games, obviously.