Males have an edge if they're good looking, at least to that potential mate, at least when it comes to birds.
Charles Darwin wrote about evolution in his 1859 book "The Origin of the Species." While Darwin understood the process, he could not explain why peacocks evolved such elaborate tails.
The tail puzzled Darwin, then helped him examine the evolution of beauty.
As much impediment as ornament, the peacock tail is huge (and colorful). It was made so by uncountable generations of selection by peahens who were impressed with glam tails.
The peacock gets to breed, yes, and his genes are passed along. That's the idea. The price he pays for genetic success is a tail that while it pleasing the ladies also makes the peacock slow afoot and a frightful flier. Peacocks are vulnerable to predation. They have expensive dates.
Evolution exists in two forms. Survival of the fittest, genes making the owner more successful, contributing to survival. Or, evolution of characteristics like the peacock's tail, evolution driven by a female's idea of beauty.
This is explained by zoology professor Michael J. Ryan in his book "A Taste for the Beautiful." (Princeton University Press, hard cover, color photographs, $27.95)
Peahens, finding those tails sexy, would choose the males so dressed. Genes for larger tails then move to the next generation, resulting in more lengthened tails.