Here's the truth based on an observation: Tesla's battery capacity degrades 12% after 200k miles. Source: https://insideevs.com/news/664106/tesla-battery-capacity-deg...
200k miles is effectively the lifetime of a car. Average US person drives 10k miles so that's 20 years of driving.
Tesla's warranty "guarantee at least 70 percent retention of battery capacity over 8 years and 100,000 miles or more". Source: https://www.motortrend.com/features/tesla-battery-warranty/
And latest chemistries are even better. In 2020 Jeff Dahn (who leads battery research group in Canada funded by Tesla) published a paper about million mile battery. Source: https://www.electrochem.org/dahn-unveils-million-mile-batter...
Since Tesla funds Dahn's research, they get the IP. This is just in the lab but those advancements are trickling, over time, to Tesla's battery making (and not just Tesla: every battery maker does research to make batteries cheaper and last longer).