Yes. This is literally the entire argument against racism: judging someone for physical traits that have no bearing on their character.
> If I invented a machine that could change physical features between the various ethnicities of the world, would banning Indians from your hotel suddenly be ok?
No, for many obvious reasons.
1. Looking Indian (or not) still has no bearing on that person's behavior or character.
2. It would cost money and be an identity change, so not everyone could/would do it.
I can't believe anyone is seriously asking questions like this in 2021. Read a book.
Isn't it the "no bearing on character" thing that's the issue? Rather than the "physical" bit?
> 2. It would cost money and be an identity change, so not everyone could/would do it.
This would also hold for political ideas.
> I can't believe anyone is seriously asking questions like this in 2021. Read a book.
Please consider whether what you are saying is more than empty posturing. If you actually did want to educate people you wouldn't say "read a book", you'd mention a particular book.
If I invented a machine that could change physical features between the various ethnicities of the world, would banning Indians from your hotel suddenly be ok?