It's not about talking politics, but knowing that the other person doesn't have deal breaker beliefs. Once that potential incompatibility is filtered out, then a meaningful relationship can be built.
Also, there will always be like-minded nerds who genuinely love to talk about any special interest, including politics. Your preference isn't universal.
The funny part is that Trump has a long history of getting caught up in the moment and accidentally suggesting something the right hates. He would do something like suggest something like stricter gun control than anyone was asking for, only for conservatives to panic and remind him that they want the opposite. This is because he has no strong beliefs or principles, reading the room to throw out ideas until he finds those that stick.