White is threatening to win material with 17.Bd6 The best way to deal with this is . . . to go your own way:
There may well be good reasons to let the opportunity pass you by! Clearly (re-) capturing is the natural thing to do.
Oops! It's so easy to forget about this, as recapturing with 19.exd5 is the natural thing to do or expect.
Black also had to watch out for the 21.Nf6+ discovered check, winning the queen.