Avoiding political conversations at work is probably a good idea even with people you do get along with.
Getting along great doesn’t always mean two people will agree on every topic. And obviously people do not need to agree on every topic to have a fantastic time working together.
Also, depending on the context, other people might overhear part of the conversation and disagree, get offended, etc.