David’s answer is excellent.
The question in the OP is rather broad and nonspecific. In a general sense, I would have to say that thinking one is “better than other people” is a sinful attitude. As others have mentioned it speaks of pride.
One may certainly recognize their gifts - that one speaks better than another, is more athletic, better at chess (as David suggests), even that one might be able to more readily forgive or has a more charitable nature. However - these things do not really make one “better than other people” - just different.
In my own marriage my wife was better educated than me, plus she was artistically talented, and and skilled with a sewing machine. In all of these (and more she was better than me. On the other hand, I knew more about gardening, and cars, and carpentry, etc. We were both good with money…
Each person has strengths and weaknesses.
So - one can recognize (with humble thanks to God) their strengths and talents. But these strengths and talents do not make one person better than another person.
Everyone is worthy of love and respect as a child of God.
Peace
James