I can most assuredly say that much of the time, the law IS an ass.
Dickens wrote, “The law is a ass,” but I know what you mean.