It depends. Which came first, the friendship or the discovery of opposing views and beliefs?
I have a friend I've known for over 30 years. We've always gotten along even though we are very different people. Different background, different temperament, different aspirations, different hobbies. In recent years, I realized that she has very different views from me when it comes to politics and other matters. When she started to rant, I listened. After failing to persuade her to see (and not embrace, but just to see and understand) the other side of the story, I told her we had to stop talking about politics. She was too set in her ways. She didn't want to agree to disagree. She was adamant that her opinions were the right ones. So I told her outright that she has to stop, we can't talk about this, she was making me very stressed when all I wanted was to share a nice meal with her, something we've been doing regularly for years. Afterwards, she apologized. She didn't want to stress me out. So I think we've reached an agreement. We still see each other regularly for meals.
Our friendship is something I value. Neither of us is a perfect being. That's okay. I don't believe that, as a friend, we must discuss everything under the sun, we must embrace everything that is in our past, personality and future plans. I know for a fact, having known her for over 30 years, that she is not a stupid or bad person. She just has very set beliefs, possibly due to her set of unique circumstances, including her exposure to certain people and events over the course of her life. Likewise, my beliefs and opinions are shaped by my experiences.
Even within my family, we don't always agree. My husband, son and I have very different religious beliefs. (That is, we don't share the same religion.) We don't always share the same political opinions either, but we can still have a decent discussion without getting angry or emotional because we tend to be very pragmatic and analytical, and we can come to a "let's agree to disagree" conclusion before things get heated.
Short story is, with people I know, it's okay if we have different opinions or attitudes towards certain issues. (Nothing extreme, of course. For instance, I'm a total animal lover. My husband and son are apprehensive about animals and would rather not have a pet at home. I can understand that. On the other hand, if they hated animals or were mean to them, I would've left them.
)
On the other side of the coin, if it's someone I don't know well at all, and he says things that lead me to understand that we have very different ideas about politics, religion, etc, I'm very unlikely to want to become friends with him. In the first place, I'd think that, if I don't know you well, you shouldn't be trying to discuss politics, religion, etc with me. These are controversial topics for good reason. And, as I've said earlier, it isn't even necessary to share these opinions even if we were great friends. We don't have to talk about, and agree on, everything under the sun.
Wall of text again. Because the older I get, the longer I take to do or say anything.