That would be a slightly different scenario. Here we have the accuser and the accused. Then the accused discredits the accuser by bringing in unrelated facts. As another commenter said, it’s an ad hominem attack. Whataboutism would be, in this context, answering “but Trump/Clinton/Julius Cesar did it too” implying (so it’s not that bad, they are worse than me)