Answer: Cognitive dissonance.
Cognitive dissonance is experienced by someone who simultaneously holds two or more contradictory beliefs, ideas, or values, and it's somehow incoherent. The person performs an action that is contradictory to their personal beliefs, ideals, and values.