I guess that might be more of a question quite far into the future, as what I know from AI, they still have problems to discern a person from a chair.
So choosing between a grown up and a child, or a male and a female is quite far off, isn’t it?
Still, interesting moral question, that will likely viewed different by different cultures.