An excellent decision. By swapping the active enemy queen White avoids an attack and transposes to a superior endgame.
Despite the opposite-coloured bishops, White has a significant advantage since his bishop is much stronger.
Parrying the threat of 7 Bxg6, but White's greater piece activity proves decisive anyway.