That law actually has some scientific basis. Ground beef has different risk than whole muscle beef (e.g. a steak). A steak can be cooked medium because you only need to kill the bacteria on the surface; there are none on the interior. However the grinding process brings the surface bacteria to the interior of the ground beef pattie. That's why it has to be well done.
You can safely have a medium cooked burger --- if it's a steak-on-a-bun.
That being said, you should be allowed to take your own risks.
