Well there's some truth in that but no, even juiced up Lance wouldn't have ''won'' any of his 7 Tour de France wins on a delivery bike.
You might say 'well ok, any carbon bike', but again like all equipment that varies in quality, carbon quality varies radically with layering techniques and materials that provide compliance and stiffness plus vibration absorbance - you get what you pay for.
Lighter is generally faster but comfort is critical as the ride gets longer, so a trade-off happens and for each of us that's unique. Body shapes, suppleness, fitness, bike fit, weight, cadence, budget, skill etc all dictate your optimal bike. Titanium is bulletproof and comfortable, especially when paired with a high-quality stem, seat post and saddle. Ceramic bearings are a thing some pro's swear by but there are also mechanics who swear at them. Choice of chainrings & sprockets affect what climbs or descents you can manage. Tires are a critical part of the choice between weight, compliance and puncture resistance.
Even something as basic as a bottle cage can be an important choice if you're doing long distances or riding jarring corrugations - losing a bottle can be a nightmare on a hot day in the middle of nowhere. Same for negative stem angles, sexy on instagram but a pain in the neck for amateurs after 2 hrs grinding into a head wind.
Helmets can weigh under 220grams, shoes under 300 grams a pair, but is the marginal weight gain worthwhile? Definitely, if you're attempting the Everesting world record! If you weigh 90kg and train on weekends only, investing in comfort will add more value to your experience.
Tell us what you tried and tested and let's hear what our other velo friends have to say about each of those.