It's doubtful we'll let self-driving cars make that choice (and in fact, would likely be illegal under current laws which prohibit weapons from being automated).