It is better to be hated for what you are than to be loved for what you are not.
Attribution checked
Quothly found supporting evidence for this attribution.
Wikiquote documents this wording and attributes it to André Gide (noting the English rendering and citing his collection 'Autumn Leaves').
Wikiquote — André Gide