If you can’t talk about politics with your friends, then they are not your friends.
Was going to comment the same thing. I try to avoid politics with co-workers and family because they are people that you are obligated, on some level, to interact with and have decent social cohesion. Friendships are entirely voluntary, so I can't begin to understand choosing to spend time with people that you can't honestly share your thoughts and feelings with, political or otherwise.
Who among us does not entertain the happy illusion that our genuine friends number more than is the reality?
I get the sentiment but guess I disagree, esp in the modern age with the increased polarization painting opposing sides as evil daily