Rival

A rival is a type of character that strives to be better than the protagonist or main character at a particular skill, or to win, obtain, or find something before they do. They are general depicted as antagonists, though friendly rivals do exist.