Hanlon's razor: "Never attribute to malice that which is adequately explained by stupidity." Occam's razor is "the simplest explanation is most likely to be true". Hanlon's razor is a special case of Occam's razor if you assume that stupidity is simpler than malice, which is a hard statement to prove in concrete terms, but intuitively seems to be true.