HAL 9000 is a great example of an artificial general intelligence that goes astray, where the humans don't understand the reasoning process as values dis-align. (This is a nod to Asimov in the sense of humans not understanding the implications of a logical framework. Marvin Minsky was an adviser on the film.)
The critical reception in the link references androids as mirror of humanity, with all the implications, including identity. Empathy is the core theme. (Seeing the self in the other. The film adapts these ideas into a love story, and includes overt Christian symbology with android Roy Batty in the finale. HBO's Westworld draws heavily from these ideas.) The book and film also explicates an evolution of Turing tests, focused on psychological responses due to the ever increasing sophistication of the androids.
This film features an autonomous military AI that does not understand the context of human reality and nearly starts a total nuclear war. (An algorithm's view of reality is based on it's input, which in the film, was limited.) The ending is an early nod to machine learning.
Here the key element is the diminishment of humanity and human purpose when strong AIs (in the form of robots) to accomplish every task. This is already happening and seems accelerated by mobile computing.
A horror film at it's core, it unveils a race of superior aliens brought down by the hubris that their own creation could never turn on them. In regard to humanity this is mirrored by the android David. (In some sense it's a throwback to Greek Drama, where pride is the fatal flaw.)
Shout out to malioboro's answer re: Ex Machina, which raises the question:
"Is the AGI in Ex Machina a sociopath because she was created by a sociopath?"
Nature vs. Nurture