Cognitive dissonance

noun PSYCHOLOGYthe state of having inconsistent thoughts, beliefs, or attitudes, especially as relating to behavioural decisions and attitude change.