Advice on rhetorical usage?
Tu quoque:
(Latin for "you, too" or "you, also") or the appeal to hypocrisy, is a logical fallacy that attempts to discredit the opponent's position by asserting the opponent's failure to act consistently in accordance with that position
It’s generally called a retort.
From Oxford English Dictionary (OED):
retort, v.1
Senses relating to reply or retaliation in kind.
To throw or hurl (a charge, accusation, epithet, etc.) back (against, †in, on, †to, or upon the originator).
I guess the saying 'tit for tat' corresponds to what you're looking for.
Merriam Webster
an equivalent given in return (as for an injury) : retaliation in kind
tit-for-tat adjective