Its a bit of a wordy question as there is a lot of background to provide context for thinking and analysis so for that I apologise you can skip the background if you want but it might provide some additional context that might be useful.
The Background: Came across an interesting position today which has resulted in me going down a rabbit hole of analysis.
Generally Whites position is looking reasonably strong and is up in material. The d6 pawn is safe from capture because mate would quickly ensue with Rxc8. The black c8 bishop is out of play as long as Black doesn't move his king. The biggest issue is for White at the moment is the knight on g5. It is preventing Blacks king escaping through f7 but otherwise is fairly useless in this position.
The position arises on move 30 with Black playing h6. The knight having no escape squares is going to fall. To make matters worse the knight has no capture possibilities or defence possibilities.
Ultimately I played Ne6 , the pawn took leading to promotion and ultimately Blacks resignation. I decided to do some analysis on this position and found that the engines really didn't like this position and repeatedly provided the wrong moves unless until they were shown the move. I could clearly see Ne6 in the lines but for some reason it would suggest Raa8 over Ne6 but the second Ne6 was played it would read that as the better and stronger move.
Question: Why do some engines fail to locate best move options even though it analyses the position and only updates it as the correct move after it has been played? Is this common in NNUE based engines?
Example: Komodo Dragon, Stockfish 12 and Lc0 all saw 2. Raa8 (Scenario B) as a better move than Ne6 (Scenario A) until it moved passed that move and then saw Ne6 as the stronger move
[Date "Nov 2020"] [White "Yours Truly"] [Black "Random Hero"] [Result "1-0"] [Event "Scenario A"] [FEN "1Rb3k1/3p2pp/2rP4/4p1N1/4P3/5P1P/6P1/R5K1 w - - 0 30"] 1. h3 h6 2. Ne6! dxe6 3. d7 Kf7 4. dxc8Q Rxc8 5. Rxc8 1-0
[Date "Nov 2020"] [White "Yours Truly"] [Black "Random Hero"] [Event "Scenario B"] [FEN "1Rb3k1/3p2pp/2rP4/4p1N1/4P3/5P1P/6P1/R5K1 w - - 0 30"] 1. h3 h6 2. Raa8 hxg5 3. Rxc8+ Rxc8 4. Rxc8+ Kf7