In the case of one government criticizing another it’s definitely fair to point out hypocrisy. The problem is that in most cases it’s used to avoid discussion on a topic by changing the subject of the debate.
That said, it is also fair to say that the first comment kind of shoehorned in the caste system on a topic that had nothing to do with it.