Horatio’s response to this line
Seems to suggest that this is something of a cliché’.
Perhaps it’s an old adage, adapted.
“Villain dwelling in all Denmark” has a heightened sense of musicality
That might indicate an old nursery rhyme form
Or if not an old adage, the analogy might be an obvious one, as in,
“There isn’t an asshole in all of New York
That isn’t a son of a bitch.”
My edition puts a dash between
The “if” and the “then” of the analogy
Which might indicate a disconnected thought,
That Hamlet starts to say one thing and ends with another.
As if he were correcting himself, first calling Claudius a jerkwad, then realizing Jerkwad was too good for the assface that Claudius is.