Invidious means likely to arouse resentment or anger, or offensive and unfair. 'Harmful' is an acceptable synonym as invidious actions are harmful to social harmony or individual feelings, though it's not the precise definition. A better synonym would be 'offensive', 'resentful', or 'unfair'.