Qf1 is best, but why?


This is a subject of study. My initial candidate moves have been debunked, but I don’t understand the line after Qf1.

Qf1 is "best" according to who? My Stockfish likes Re3 and Qf1 almost equally, depending the depth either one can be number 1, but only by a very small margin.
The point of Qf1 is to move out of the pin while defending f2. (And not g2, that is just nonsense). Most variations seem to lead to a rook endgame where white is up one pawn and has a better rook.
Something like 1. Qf1 Bxd4 2. Rxe6 Bxf2+ 3. Qxf2 Qxf2+ 4. Kxf2 fxe6 5. Rd6 wins a pawn and all those black pawns are super weak.

The IM on the video I’m studying provided the problem and gave Qf1 as the “right” answer. I’ll go back and revisit his rationale, but I was hoping that someone here had some insight.
Thanks @magipi.