Personally, I’ll always take my chances with a med-rare to rare burger.
However, what you are saying makes sense. The bacteria resides on the outside of piece of beef. The bacteria is cooked off of even the outside of a rare steak, so it is safe.
On a burger, once the beef is ground, the bacteria is mixed within the meat, so the only thing that will truly kill it is to cook the burger through.