I like to read this play as being similar in its dynamics to the Greek story of Orestes and Antigone who kill their mother, Clytemnestra, and her lover to avenge their father's death (Agamemnon).
Hamlet's dilemma is very similar to that of Orestes and Antigone. Justice demands that vengeance be taken on the murderer, yet justice can only be served by committing the crime of matricide.
Seen in this light, Hamlet's father is merely a spokesperson for justice - an embodiment of the social demand that the crime of his murder be balanced or accounted for in some way. He is not good or bad, but represents an unthinking and uncompromising force.
It is due to this unthinking, uncompromising, absolute nature that Hamlet, like Orestes and Antigone, has not real way out of his problem. There is no way to ignore the "natural" demand for justice on behalf of the murdered. But there is no way to soften the fact that this justice will result in another great and nearly unthinkable crime.