Bimodal inference in humans and mice