Tu Quoque
Now, let's see, who does this? Could it be...is it...
tu quoque
(also known as the appeal to hypocrisy)
You avoided having to engage with criticism by turning it back on the accuser - you answered criticism with criticism.
Pronounced too-kwo-kwee. Literally translating as 'you too' this fallacy is also known as the appeal to hypocrisy. It is commonly employed as an effective red herring because it takes the heat off someone having to defend their argument, and instead shifts the focus back on to the person making the criticism.
Example: Nicole identified that Hannah had committed a logical fallacy, but instead of addressing the substance of her claim, Hannah accused Nicole of committing a fallacy earlier on in the conversation.
https://yourlogicalfallacyis.com/tu-quoque
Also see: Ad hominum.
Dictionary Definition:
tu quoque
n.
A retort accusing an accuser of a similar offense or similar behavior.
n.
A retort consisting of a charge or accusation similar to that which has been made by one's antagonist, as in the case of a person charged with bribery who replies that his accuser's hands are not clean of corruption: also used attributively: as, the tu quoque argument is not conclusive.
n.
An argument whereby an accusation or insult is turned back on the accuser.