This thread reminds me of the episode of Star Trek:TNG, whereby Picard has to protect Data's daughter from being dissected by a computer engineer who wants to find out how the daughter's Positronic brain works.
Anyone ever read 2000 AD? With Judge Dredd and other characters. There are two robots who feature heavily. One is a rubbish droid while the other is a fighting droid. Both have had their share of experiences, especially during the Volgan War where Hammerstein works with his human Sargeant to attack Volgan soldiers.
Of course, this is all fiction, but history is full of tales of fiction that eventually became reality, such as rockets, helicopters and submarines. AI is the next big thing, with machines capable of making rational decisions, without the hindrance of human emotion clouding it viewpoint.
(In the film, I Robot, the character played by Smith is rescued by a robot because the robot works out the probability of rescuing Smith's character greater than that of the little girl who is also drowning. A human would have favoured saving the little girl even though her odds of survival were less).
Our opinions are often influenced by our perceptions, rather than clear facts. A machine would assess using a different set of parameters.
One final point worth noting, and that is a machine won't be affected by Ego. Ego is mankind's biggest downfall. Wars have been fought because of Ego. Men fight over women because of Ego. Ego makes us overly competitive, which can be negative to our overall welfare.