It's very likely a horizon issue. If you let both positions go a lot deeper, they may end up with similar evals.
That said, I've seen similar things with local analysis before with Stockfish; there are some positions that it takes an additional ply for them to evaluate better.
In analysis of a game I just played (https://www.chess.com/game/live/46875601503) -- at move 31 for white, the analysis board displays this for the various lines it is looking at:
The "top line" or recommended move is 31. Rd1. This is at Komodo 2901.00 depth 28. It's clearly the best move according to the engine, +25 in valuation, 4.3 points above the next best option.
I make the move 31.Rd1 as recommended, and then the analysis turns in to this:
"Rd1 is an inaccuracy" is displayed (?!) with an evaluation plummeting to +6 with best play from Black. Note that this is also with the same engine depth (Komodo 2901.00 @ 28).
I suppose this could have something to do with a catastrophe the engine is able to see "just outside" of the engine depth, which becomes apparent only after making the move (ie the analysis is right "on the edge" of some calamity on the board, but it isn't seen pre-moving Rd1). The only problem with that theory is that I am finding the same move discrepancy at lower engine depths (~20 moves) as well. Which, to my simplistic mind anyway, seems to ruin that theory.
Does anyone have any other ideas / theories about what can cause this kind of issue? (a recommended move suddenly becoming a bad move, aside from issues with the depth of analysis (which seems not to be the situation here))?