Answer:
cognitive dissonance
Step-by-step explanation:
Cognitive dissonance defines the situation where it includes the attitudes i.e. conflicted, behaviors, etc. It generated the mental discomfort feeling that would result in change in the attitude, belief, etc in order to decreased the discomfort also at the same time it would restore the balance
Therefore as per the given situation, it is cognitive dissonance