If this were true, then both novel and film would be deathly dull. Luckily, there's an arc to Jack Torrance's character. He makes choices and those choices change him over the course of the story.
Meanwhile, David is the same kid at the end of "A.I." as he was at the beginning. His needs and wants never change. You could tell him a 1,000 times that his mother doesn't love him, that she's never coming back, or that she's in fact dead and it would make no difference to him.
This also one of the reasons why I don't think the film works, and that it almost approaches an experimental, audience-hostile, anti-narrative, because it attempts to be a narrative drama in which the protagonist doesn't change (If it has fully embraced this aspect, it would have been a much more interesting movie.)
We can argue over the question of fate in "Oedipus" and the role it plays in the story's outcome and why and how that makes the work resonate across centuries --- but Laius still made the choice to send his son away, and Oedipus still made the choice to leave Corinth. If those characters don't make those choices, the rest of the plot couldn't happen and the story would collapse.