Based upon my actions, I tend to avoid people probably from a fear of judgement, and maybe partly because I think I am better than them because I like to think I'm more informed than them usually. I also like to think and tell myself that I like people even when I don't necessarily live up to that in reality. In general, I try to assume that people are good, while keeping in mind that they are inherently selfish.
Even if people say and have a lot of naive or ignorant viewpoints, I try to remind myself they may partly hold those viewpoints to feel better about themselves. Everyone wants to feel like they are important, and some people do that by tearing other people down. If the only way someone can feel better about themself is by telling themselves at least they aren't black, gay, trans, a lib, a commie, a repub, poor, etc. then they must have a pretty sad life.