As others have said, intelligence manifests in many ways. It can also change over time for various reasons. Do you have a specific example in mind for a situation where you had a hard time coping with a person you considered less intelligent (or possibly witnessed a very frustrated person who you perceived as highly intelligent)? A specific example would make it clearer what particular struggles you're having.
One thing that helps is just trying to recognize that each person is unique and has their own strengths and weaknesses. Just because someone may struggle to effectively communicate, either by struggling to absorb or share information accurately and efficiently, doesn't mean they aren't able to learn and communicate well in other ways.
Try to speak to them as a person. Meet them where they are to the best of your ability, but without holding any notions of superiority (it's rude and unproductive to be condescending). And if they're not communicating with logic, bear in mind you can't convince them with logic, and you may find you're better off leaving them be and continuing with your day.
Or do you perhaps mean that others react poorly to the way you communicate? The above advice could still help a lot with that, but you may, like me, have some challenges with emotional intelligence or interpersonal skills. If others are targeting you for harassment, they may feel threatened by your behavior or otherwise have a tribalistic instinctive recognition that you stand out. So you could choose to learn that language or find ways to avoid those types of reactive people, which could include bringing in people with authority to mediate depending on your situation.
I know this is much easier to say than it is to internalize and believe, but it doesn't matter what any singular person thinks about you. There are people out there who do their best to understand and accept you as you are, without using what they learned to make half-assed guesses about the rest of who you are. They may be few and far between (or maybe not), but I know they exist. As soon as you start looking for those who accept you instead of trying to be accepted by those who don't, you'll be on a better course. And don't be afraid of anti-depressants. Depression makes yiu want to give up on fighting, makes you think nothing can help. It's a lie by which the illness sustains itself. By listening to that lie, you may protect yourself from harm, but you'll also "protect" yourself from finding happiness.
And remember, parents, old friends, etc. who don't necessarily get you too well aren't necessarily trying to be cruel, but you may never have quite the relationship with them you wish you could. They have their own problems from their own anxieties and abuse growing up, their own mental health issues, etc., and that can limit the depth of relationships they can achieve with you. Try to be patient, but don't drive yourself insane trying to achieve what isn't possible.
And if you feel like you don't belong, maybe you don't, and maybe that's okay. Maybe you're neurodivergent or simply have morals or interests that are incompatible with theirs. But the fact remains, there is someone who will accept you and with whom you can belong in peace, if you can open yourself up to let them. You haven't lost until the last time you give up on finding them. Giving up on something you still deeply care about, without eventually picking it back up again, is the only failure. It's okay to quit, but don't be afraid to come back to it if you care about it.
~ advice I try to accept myself, would give my younger self, and may hopefully be at least a little helpful for you