I just recently remembered that when I was still in elementary school (ca. 2005-2009), a teacher talked about a new Science Fiction story or movie they had recently read/ seen, and now I can't get it out of my head - unfortunately, I can't recall much.
From what little I can remember, it played in the near future and was about a man who constructed (or bought?) a sentient robot boy for his wife as a replacement for their dead son.
However, for some reason I can't recall, the boy is kicked out (by the "father"?), but keeps with him a strand of hair of his "mother". I think afterwards a lot of stuff happens to the robot, and at some point the "mother" dies (if I remember correctly, there has been a war).
In the end, however, the robot can revive his mother with the DNA that can be extracted out of the strand of hair he kept with him.