In the field of psychology, cognitive dissonance is described as the mental discomfort people feel when their beliefs and actions are inconsistent and contradictory, ultimately encouraging some change (often either in their beliefs or actions) to align better and reduce this dissonance.
Cognitive dissonance is the mental discomfort, not the contradiction, and that can be avoided by not thinking about the contradiction.
From wikipedia:
Cognitive dissonance is the mental discomfort, not the contradiction, and that can be avoided by not thinking about the contradiction.