Sperm competition when transfer is dangerous