I just failed a puzzle at chess.com, despite being 2 moves away from check mate. I am quite sure that there is no move I could have made to get check mate in 1 move, so I am wondering how I failed.

I just looked at the suggested solution, which would be moving to g3 instead, why is that better than my move?

[![Move classified as incorrect](https://i.stack.imgur.com/xC0Uu.png)](https://i.stack.imgur.com/xC0Uu.png)