Extended Warranty on a new car. Is it ever a good buy?

When I used to buy new, I’d get the extended warranties But the past several cars, I have leased them so no need for an extended warranty.

The only warranty stuff I get now is Apple Care for a new iPhone or Apple watch.