I think there are three moves here: Bd3, Bb3 and Ba2. My stockfish prefers Ba2.
Bb3 and Ba2 retain the pressure on the d5 pawn and also place some pressure on f7. Bd3 attacks h7. At some point black may play d4 and this will make the a2-g8 diagonal quite attractive for the white bishop.
So yes, the d5 pawn does get in the way of the bishop but that might not always be the case and, besides, the d5 pawn is a target in its own right.
I thought having an attack on the h7 square was better. Why place the bishop with the central pawn in the way here?