Did you actively build a relationship with your boss? Did you actively solicit feedback from all the stakeholders in a given project? Did you ask earnest questions to try to understand people you disagreed with?
When I was younger, I thought anyone that disagreed with me was incompetent. This had upsides since I pushed through projects others thought were impossible. But you alienate a lot of people in the process. More importantly people start rooting for you to fail. This is fine a very narrow set of situations but as a whole you're far better off taking the same effort to understand the people around you.
My hypothetical question to the OP is have you ever had a falling out with anyone that you felt truly understood you and wanted the best for you? I haven't.
But you just can’t tell which is which from where we’re sitting.
So, OP… probably you’re the asshole, but maybe not.
i'm in a cycle. i quit software eng job hating everything, everbody, and software engineering (which i very like). i go to work away from computers. my happines goes up, my optimism goes up, making software makes me happy. then i say to myself: i am good working with people. if i can do it here then i can do it in an IT company. The IT company turnouts as an unorganized mess with dumb people pretending to be experts.
Or you think you are better than you are, not possible to tell from the post (but I'd say unlikely given some introspection that went into making it).