Nobody says to a dog, “I’m smarter than you!”
Why not?
Because they know they are smarter.
Therefore, people only say, “I’m smarter than you!” when they know they are not.
So the next time someone says, “I’m smarter than you!” just smile and thank them for the compliment.