Exploration of identity of human has been a recurrent question.
I found that Ghost in the Shell (manga 1989; 1995 animated movie) illustrates well the though about human identity and AI when AI become aware of their existence. The main character has a human brain in a cybernetic body who works for a special anti-criminal unit. She has to stop the Puppet Master who has been able to take the control of a human brain and wants to create a new form of life. The movie explores the question: What makes human? What makes a machine?
“Do Androids Dream about Electronic Sheep?” (1968) novel by Philip Dick after adapted in Blade Runner (films 1982, 2017) are great too. Any other recommandation?