Depends on how the interaction went with the girl.
If I felt there was a strong connection between us and she brought up a bf, I'll just say 'fine' and proceed in doing what I'm doing.
There is a lot of
PUA nonsense written about picking up girls who have boyfriends.
If the girl likes you enough she won't make it that hard for you.