The reality is that we’re all ignorant about most things, so having an attitude with someone around something you know - irrespective of how you know it - is a losing strategy and as you said leads to poor interactions
Try to give people more grace and you’ll find people are more capable than you might know