In Hamlet it remains repressed; and—just as in the neurosis—we only learn of its existence from its inhibiting consequences.
Freud argues that Hamlet enacts the neurotic repression of the Oedipal wish-fantasy, contrasting it with Oedipus Rex where the wish is openly fulfilled, and locating Hamlet’s paralysis as symptomatic evidence of that repression.
, The Interpretation of Dreams, 1900thesis