This has already been a movie called Terminator 2: Judgment Day. Sarah Connor is out to kill Dyson to stop Skynet from becoming a thing and the audience watched it thinking she was probably justified but was uncomfortable anyway. Spoiler alert: she ended up shooting but not killing him.
My point is, we've seen this movie and killing Sam Altman is uncomfortable but justified.
My point is, we've seen this movie and killing Sam Altman is uncomfortable but justified.