Not so long ago the chess.com engines (Komodo and StockFish) had trouble with the first move but the current versions quickly give the right answer: Mate-in-2.
I am very suspicious of the engine software which often appears hesitant on finding the correct first move while having no trouble with the remainder after feeding it move 1. That does not depend on the duration of the solution. The same thing happens to a #2, #4, #6 or #12. Perhaps it does not apply to the latest installments of the engine software - I haven't seen any hickups with it yet!
It mate in 2!