Actually, what he is saying is that the the stories are exactly the same, but Hamlet has a realistic outcome (truth) whereas Cinderella is all about the story graph. Hamlet makes the mistake of killing Polonius, and getting killed himself, because there really is no shoe fitting happily ever after in life, and that's why the story works.