I don't remember where OP said the AI has its doppelganger's memories, it's just programmed to act like them. However, even a sentient AI would be able to tell the difference between itself and its human dobbelganger, otherwise it wouldn't be true sentience.