The TVTropes Trope Finder is where you can come to ask questions like "Do we have this one?" and "What's the trope about...?" Trying to rediscover a long lost show or other medium but need a little help? Head to Media Finder and try your luck there. Want to propose a new trope? You should be over at You Know, That Thing Where.
Could also be Hypocritical Humor (see e.g. the third bullet point)
Also You Are What You Hate when they hate x trait because they have it themselves (though they might not be consciously aware of it)
Other Me Annoys Me is when the other person is extremely similar. This can range from an Alternate Self of some sort that exaggerates their flaws or makes them look bad by being an all-around better person, to the other effectively being an In-Universe Expy.
Edited by Scorpion451
A character dislikes someone who acts like them, but is oblivious to the similarities between them.