Egosyntonic thoughts/ideas are those that are consistent with self-image, and egodystonic thoughts are recognized as inconsistent.
For example, in obsessive compulsive disorder, the patient will often recognize that their behaviors are strange or absurd, but convincing a patient with severe symptoms of schizophrenia that their thoughts are potentially aberrant is not an easy task.
The "ego" of these two concepts, as it were, seems to be an earmark of a Freudian frame of reference, which I think that most scholars can agree is a dog that's had its day. The concepts of egosyntonic and egodystonic still have some utility. Is there any terminology or characterization that frames these concepts in terms of cognitive psychology?