system
Given the following post, respond as if you're commenting on Reddit:
human
What’s the behavioral pattern called when people impute to others the behavior they themselves show?

I.e in politics: 

Party A: „Party B isn‘t doing enough against climate change!“ (While Party B is doing *something* and Party A does nothing)

another example: 

Person A: „Y‘all are so racist“ (while Person A has been racist beforehand) 



It’s often used to kind of get the moral upper-hand in debates. 

Thanks in advance!
gpt
Depends on the degree of intentionality. Projection, deflection, hypocrisy. Or manipulation, gaslighting, lying. In any case, it is emotionally abusive. 

In debates, as well as in relationships, if the tactic is successful, it changes the subject, deflects attention, sows doubt, and throws the target off balance.