People are a bit confused about how evolution works. The mechanism is important. How would some men dying younger cause a gene in other males to be passed on? I can't see how.
You can't see that?
But it is quite easy.
Let's say we have a village in Africa where 20 boys and 30 girls live to adulthood. Let's assume, to keep things simple, that they only marry within their own generation.
All 20 boys will find a wife and have children, some will be able to father children with more than one woman. If only 2 of those 20 boys have the same father, he will make double the contribution to the gene pool compared to all other men in the village. Parents of boys will have more grandchildren because one man can father children with two women, which is double the amount of children a girl could have.
If you have 30 boys and 20 girls, then either 10 boys will not have children at all, or, with polyandry, some males will not get to father as many children as others. In any case, the number of possible babies born is limited by the number of women.
So, if girls are rare, the parents who have daughters have an advantage in passing their genes to the next generation.
If you have 33 boys and 30 girls, but 3 boys die before reaching adulthood, then the other 30 can father a maximum number of children, the previous existence of three more boys doesn't change anything at all.