Male genital size reflects a tradeoff between attracting mates and avoiding predators in two live-bearing fish species.