Our identity lies in who we are professionally, and when someone rejects that, as if we aren't who we think we are, it can sting.
Who are they to judge you? How long did they take to get to know about you? Don't let yourself feel beaten by a stranger. For all you know, they could have been intimidated by your experience and wisdom.
Keep at it. Keep searching. Network to find your next adventure.