I've left a group that I was RL friends with because the DM just wasn't doing it for me. I stayed a lot longer than I should have because both the friend thing, and because the other characters were so much fun. It was tough, but there wasn't any hard feelings. And the rest of the group left for similar reasons within the year.
When I was young, I wasn't particularly tolerant of other play styles than I was familiar, which mostly came up at conventions. It wasn't until I was DMing at a convention for the first time when I realized that this group of people all enjoyed each other's style (it was rather silly), and they were all here to have fun, and I just learned to relax and go with it.
But for a home campaign I find it better when everyone at the table have compatible styles (which doesn't require the same style, but ones that work together).
I'm struggling with this a little in one game I'm currently running. One player is very much "we follow the story the DM puts down for us". He runs the same way, and he's a great DM, I've done Dragon Heist, Avernus and now in Ravenloft with him running. Another player is "if this is interesting, let's chase it". The latter is closer to how I run, tailoring a lot to what the players find interesting. But their characters end up disagreeing often on what to do next as bleed-over from valid but minorly differing player preferences.