But, the problem is that God made suicide a sin and this creates an internal conflict within Hamlet whether to commit suicide and possibly be sent to purgatory like his father or to keep fighting.
"O,that this too, too solid flesh would melt
Thaw and resolve itself into a dew!
Or that the Everlasting had not fix'd
His canon 'gainst self slaughter!
When contemplating this decision, people need to take into account the unpredictable and unknown fear of the afterlife.
At the start of the play Hamlet is suicidal.
Essay about Suicide in William Shakespeare's Hamlet
With suicide comes the unpredictable fear of the afterlife, but also the terrifying image of leaving our bodies behind to be had for supper, leaving nothing but an empty skull and bones such that as the skull of Yorrick that Hamlet was so amused by.
"Not where he eats, but where he is eaten:
a certain convocation of politic worms are e'en at him.
Your worm is your only emperor for diet:
We fat all creatures else to fat us,
And we fat ourselves for maggots."
-Act four, Scene three, Page two
In the end, Hamlet is subject to the suicide of Ophelia, the woman he loved.