Although he is your classmate, you two are not going the same way. You should know that learning this kind of thing is learning from each other. If he has a lot of problems, everyone will see it, but don't let his problems affect you.
Therefore, even if his excellent grades make you uneasy or even look down on him, you should continue to follow your own path and learn your own habits, instead of repeatedly paying attention to what others don't like and what others don't like, which will seriously distract you.
Or, you can try to be friends with him, even if you don't become friends, you can get along well. The average person's eyes will change with the relationship between two people. If you have a good relationship with him, you won't care what he says in class, and you won't hate him.