According to http://www.navweaps.com/
I would assume yes, the 40.6 cm/L 52 guns had a bit better range and armor penetration on the side, traded off by a bit lower penetration of deck armor from about 18,000 m distance onwards.
The planned boring out to 42 cm calibre would have changed this IMO to a further advantage for the germans.
Its horizontal armor was - combined upper deck and armordeck - better than the Lion class, traded off by a lesser side armor.
In general I would say an H-class battleship would have had good chance to stand up against a Lion-class, a bit depending on the starting range of the battle : the closer the better for the H-class IMO (esp. if armed with 42 cm calibre).
which again goes to show how crap the H class battleships were
the fact that you can only say 'would have a good chance to stand up against a Lion'
h-39 55000 tons standard
HMS Lion - 43500 tons standard
an extra 10k+ only gets you a good chance