Resolution of male-female conflict in an hermaphroditic flower