Why does chess.com's tactics player avoid taking the queen in this problem? Why can't the black pawn take the queen at h6? Instead the computer makes the king go to g8.
1... gxh6 2. Nxf6+ Kh8 3. Rg8#

[FEN "4rb2/pbqr2pk/1p3p1p/4p3/2P3NP/1P4R1/P5P1/2Q2B1K w - - 0 1"]

1. Qxh6+ gxh6 2. Nxf6+ Kh8 3. Rg8#