In a game of Stockfish (White) vs Leela (Black), in this position, Stockfish plays the move Bxg7.
[FEN "2rr4/5pbk/PqP3p1/1N2BpPp/1PQ1bP1P/8/3R4/R4K2 w - - 3 40"] 1. Bxg7 Rxc6 2. Qxf7 Bg2+ 3. Rxg2 Rc1+ 4. Rxc1 Rd1+ 5. Rxd1 Qf2+ 6. Kxf2 If you plug the FEN string straight into the Lichess Analysis Board and turn on the browser engine (also Stockfish), it does indeed show the best move as Bxg7, giving White a +2.6 advantage on the eval bar at a depth of 26.
However, as soon as you play that move, the eval bar drops to 0.0, because it sees that Black can play Rxc6 and force a draw in only 5 moves.
I thought the evaluation and best move for any engine were directly related. The eval should stay the same if you play the best move.
How can playing the best move cause a drop in the eval bar?