I think eventually, if you have friends that bother you that badly you need to cut them loose.
Now I'm not saying that every time you disagree with a friend, you need to cut them out of your lives and cut off contact to any mutual friends that's just crazy and not what friendship is about.
But sometimes, people change, and for the worst, and they start doing stuff that is hurtful, like only being around when they are bored, and expecting you to entertain them, and they expect you to be there when their life is complicated, but you try to talk them about your life and they blow you off, Consistently, to the point that even if they bother to ask how you are, they don't even acknowledge your answer and go on and on about themselves.
Those aren't friends, those are people that want a bunch of "fans" around them. People like that, I think, are toxic in away, and its sometimes self preservation to let them drift away until you are not speaking and cut ties.
People like that, I tend to not "choose" to keep around. Other friends, they do stupid stuff sometimes, but they are also there for me too. Its a give and take situation, sometimes they drive you nuts, but they let you drive them nuts too. Those are friends to keep, those are the ones that I'd do almost anything for, because I know they would do it for me. That kinds of dependability and loyalty, when it goes both ways, is wonderful and it lets lots of little annoyances slip by, those are people that I would "choose" to be my family if I could.