A general rule is that you don’t trade queens when attacking. In the diagram above, white’s huge lead in development and active pieces gives him good attacking chances. 1. Ba2 preserves the bishop and prepares for Nf5. Black will have to allow his kingside structure to be ruined anyway:
1. Ba2 Nbd7 2. Nf5 Ne5 (2... Qd8 3. O-O-O Qc7 4. Qg3) 3. Qg3 Qd7 (3... Qd8 4. O-O-O black can’t do anything against f4 and e5) 4. Bxf6 gxf6 5. f4 Ng6 6. O-O-O is much better. Black has fewer chances of survival with queens onboard, since any attempt to activate his bishops will only create more targets for white.
I played Bxf6 because I wanted to either disrupt blacks pawn structure or exchange Queens (I was ahead in the game) but the analysis clearly shows Ba2 (which I played after ..gxf6) was the best move. I considered playing Ba2 first but thought that would allow Nbd7.