I have often heard it pronounced (Including by Eliezer) that group selection is not a thing, that evolution never selects for "the good of the species" - and it is true, in the sense, that if evolution is given the chance to throw the species under the bus for a slight gain to the individual, then it will never hesitate to do so.
But there is a sense in which a group can be selected for - assume feature A is always bad for whichever species has it, and there are two species which occupy overlapping niches - one group with feature B, which makes feature A unprofitable for the individual, and one group with feature C, which makes feature A profitable for the individual. Assume features B and C are sufficiently complex that it remains constant within the group (there are many such biological traits - human eyes, for example, tend to be much more similar to eachother than to dog eyes, despite there existing variances within each), while feature A can be mutated on or off on an individual level. In this case, we should expect the group where the group-level disease is also unprofitable to the individual, to outperform the group where the group-level disease is profitable to individuals, since feature A will be common in one group (which will suffer) and not the other (which will prosper). This is a way in which group selection can have meaningful effects while still having evolution act on individuals
For example, ants or bees can collectively gather resources... but that is only possible because most of them are infertile children of the queen, so they cannot spread their genes better by defecting against the queen.
It's worth noting that the infertility of worker bees is itself (seemingly) a form of genetic sacrifice, so it doesn't really explain why cooperation evolved among bees. The explanation that I'm familiar with is that male bees (this is also true of ants, but not molerats) only have one set of genes, instead of the usual pair, which means ... (read more)