If "To be fair, isn't this functionally equivalent to the NSA attacks on Huawei and Chinese aircraft manufacturers over the past decade" is indeed a logically valid comparison, is that not a perfectly valid rebuttal to ~scare mongering accusations of "state sponsored attacks" from China? It doesn't nullify it, but it puts it in accurate perspective, no? And should not accuracy be an important part of such conversations?
Constructively pointing out hypocracy is to also call for B to be held to account. Whataboutism isn't constructive; it's obstructive.
In many cases, it's even worse. Whataboutism is often used to argue that the hypocracy of B negates the complaints of third party C against A. Nobody is claiming HP or the journalists have tried to hack the Chinese government, or that HP or the journalists support the NSA's misdeads.
Whataboutism impedes progress and should be called out when encoutered.
When you bring up something quite related to the presented problem, that's not whataboutism.
In my experience, it's almost always used in the latter (incorrect) sense.
Pretty low-effort stuff, tbh. It's up there with "fake news!" as a credible rebuttal.
That is the essential problem of whataboutist arguments