If that is the case, you clearly have a problem with your self-esteem. You feel inferior to others, and the only way you can make yourself feel better, and feel you matter, is by putting yourself above them. Sadly, the more you strive to do that is the more you expose yourself as inadequate, insecure, and not worth knowing as a person.
The main problem with your logic of perfection is that there is no such person as a perfect person! Everyone of us has both strengths and flaws to give us BALANCE and uniqueness. Perhaps you have not got the reinforcement and affirmation you seek from the people who matter to you, and you waste valuable life trying to be ‘perfect’ to gain their approval. But perfection is a stagnant state. There is no growth, no further development or creativity in perfection.
Why does being perfect matter to you so much? You obviously don’t think much of yourself, so you project that inferiority complex on to others. If they are not perfect in your eyes, they are not worthy, because you don’t feel worthy either! This kind of world view cannot make you feel good about yourself, because winning friends and influencing others do not come from negativity, unkindness or cruelty. It comes from self-love, self-appreciation, gratitude for what you have, and appreciation of others, too.
It takes all sorts to make our world. Putting yourself above others is also the root of inane prejudice and sexism/racism. It is easy to assign certain people to your imperfect list, according to spurious criteria, and treat them in discriminatory ways. However, when you put yourself above others, there is likely to be no one there to value you when you need some empathy and support!
You can treat others however you wish, but you will gradually discover that the greatest happiness is associated with how you treat yourself first, how you value yourself, and how you can radiate that self-love outwards to others, in the form of empathy and kindness, for them to value and respect you in turn.