Correctness of the lichess training solution (Puzzle:63063) I'm a beginner and right now rated 1850  in on lichess training; so I'm a very novice player. I try to solve some training examples, and though sometimes I do not feel convinced by the solution given by the computer, I continue. 
 Here is an example where I felt the solution was absolutely wrong. Below are the pictures

 



Why did the computer save the queen rather than killing the knight on g3 with the pawn on h2? 

I thought of this step when solving it but thought it was of no use. But the solution given left me wondering.
In case of 16.hxg3, Black plays 16...Qxg3+ when White has only two legal moves:


17.Kh1 Rf6 followed by 18...Rh6 is a quick checkmate.
17.Qg2 Qxe3+ and after the check is parried Black can already take back his piece with 18...Qxd3 (with already three extra pawns as a reward), or continue the attack with 18...Rf6. He's completely winning in both cases.


This exercise is a typical case of a demolition sacrifice: you give your knight on g3 to rip the opponent king of its protective pawns and mount a decisive attack.