A movie set in the world of Batman and a three-hour documentary about Elizabeth Holmes went head-to-head at the box office this weekend, and it turned out to be a closer contest than expected.