Did I have a chance to draw here?


Hello!
Tough ending. White's bishop is clearly very strong (definitely much better than the knight), and your pawn structure is bad.
You should probably look for improvements in the earlier phases. An easy one would be 15.. f6. (you played 16.. f6 - just a small move order trick, by playing f6 first you would inflict a weak c-pawn if he replied Nd3 as in the game)