It is important to maintain friendships with people you disagree with. Moreover, you must disagree with them in fundamental ways; they must challenge your most basic assumptions. You must stretch your mind beyond where it’s comfortable.
I’m of the opinion that you never grow unless you do things which make you uncomfortable. And if you do not grow, you will stagnate instead of staying constant. Having friends who always agree with you or disagree with you in comfortable ways means that you will intellectually shrivel.