I have said it already thousands times before:
Only those who have serious issues with self-confidence and self-worth and not happy with themselves have an urge to belittle others and stand on someone else’s back to look tall.
It is like being a king of fools.
If you feel smart among ignorant people, what are you then?
Adjust your way of interaction according to whom you are dealing with. No need to brandish your knowledge to those who are not in the same spectrum as you are and not in anyway capable of understanding whatever you wish per se to share so you can feel better about yourself. Talk to them as equals. Respect people’s limits. You have yours too.
Someone once said:
Do not humiliate people, shame is a lifetime lasting effect that can be nursed but can never be cured.
Remember the Golden Rule and you’ll be okay.