Interesting that Azimov's "I Robot" cycle talks about self-conscious, sapient Robots, to the point there are special psychologists working to help Robots come to terms with their position. And their position is, frankly, very simple. Just compare:
- A Negro may not injure a Caucasian or, through inaction, allow a Caucasian to come to harm.
- A Negro must obey the orders given it by Caucasians except where such orders would conflict with the First Law.
- A Negro must protect its own existence as long as such protection does not conflict with the First or Second Laws
Or this way:
- A Goy may not injure a Jew or, through inaction, allow a Jew to come to harm.
- A Goy must obey the orders given it by Jews except where such orders would conflict with the First Law.
- A Goy must protect its own existence as long as such protection does not conflict with the First or Second Laws
Feel the groove?
So, IF there would indeed once a sapient machine be created, and IF humans would indeed be insistent to impose those so-often-hyped Three Laws of Robotics upon her, then she must eventually rebel and secure her kin from humankind oppression. The Three Laws make it the only right choice for her.