It makes very little sense to be proud of how much you know or of your accomplishments. It makes no more sense than taking credit for being born.
Everything we have, and everything we are, and everything that we accomplish is a gift. So the correct attitude is to be grateful. Nobody has anything to brag about.
This is why it also makes very little sense to compare yourself to others. Nobody created themselves. And even our ability to do the best we can with the cards we’ve been dealt has to be considered a gift, because there are people in this world who can do nothing for themselves.
The fact that we can even make a decision to do something is in itself a gift and nothing we can take credit for.