In true natural selection, if a body has what it takes to survive, its genes automatically survive because they are inside it. So the genes that survive tend to be, automatically, those genes that confer on bodies the qualities that assist them to survive.
Richard Dawkins (2015). “The Blind Watchmaker: Why the Evidence of Evolution Reveals a Universe without Design”, p.65, W. W. Norton & Company