I remember, some years back, the warranty period was actually almost inversely correlated with reliability. It seemed like the companies that were making unreliable cars were just hoping to get people onboard with long warranties. There's a great story on Reddit from years ago about the lifetime Kia warranty, and a car that went through something like 7 engines in 10 years.