While the mechanism was different that was what _effectively_ happened to US Japanese people, too. The taxes part is more like a separate mechanism of discrimination against anyone "new".
But if I have to guess why someone down voted the comment (not me) is because it feels a lot like trying to downplaying how evil and against the values the US claimed (back then) it stands for this was by pointing at some random other country and saying "they also did bad things so we aren't that bad".
When the truth is it's all pretty bad history, and others having done something like this too doesn't mean it's less bad, or more reasonable or more excusable.
I mean a lot of countries did some pretty bad things in the past, especially the past 200 years.
When I post about stuff like that it's less about saying "hey see how bad they where" but more because I think people from countries should be ware about all the bad stuff they country did/was done in their country. So that they can learn from this.
But sadly most countries try to bury most mistake, atrocities, large scale crimes done in history.
Like as a random example the tulsa race massacre should be required teaching in middle school with focus on the dynamics which lead to a mob of people including people in governing positions to thinking it is okay to try to lynch a whole district (more or less, simplified).
Or e.g. in Canada there is the genocide of indigenous people (which by now might be through about in school, not sure).
The important part here isn't teaching "that" it happened, but "why/how" it happend, so that if stuff goes in the same bad direction again people realize it and (hopefully) stop it.