Yes, vanity is a weakness indeed. But pride – where there is a real superiority of mind, pride will be always under good regulation.
– Jane Austen
Pride and Prejudice, Chapter 11. When Elizabeth calls Mr. Darcy out on what she believes are his weaknesses, pride and vanity, he shows some self-awareness by actually acknowledging his defects. But he doesn’t see pride as a weakness where there is "superiority of mind" and it is properly controlled. That may sound arrogant, but he a point there.