Computer thinks hxg5 is the best,but why?


1) The pawn is hanging, so you need to do something.
2) Black is ahead so it's better for white to remove pawns from the board (getting down to a few or no pawns usually makes a position a draw).
3) Black is ahead so it's better to open lines in more areas which can potentially help white generate counterplay later.
Thank you.You are right.