I suspect that you wouldn’t react as strongly to a smug assertion that the USA is a basket case.
It’s okay to admit that the US has done immigration well. It has. There are a great many things that Japan does better than the US. We can discuss them without taking umbrage.
Boo boo? I'm not sure exactly why you expect Japan to be held to a different or lower standard than the rest of the world but I don't stop to think about the feelings of disgruntled nationals when bringing up racism in any other country.
What's far more arrogant is you thinking your culture is so magically different that you're somehow immune to such criticisms. I wonder how the Koreans and Chinese would feel about that.
Do this, be more like (supposedly virtuous) X and don't be Y & Z is clear paternalism and, in my opinion, highly arrogant paternalism to boot.