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.