Just wondering, when did you have that car experience and what model was it? Lemon laws in many states protect consumers against faulty cars (it's a massive pain-in-the-ass to go through the process), and I think it dissuades auto manufacturers from completely cheeping out on cars anymore. Though, there may be issues that creep up beyond the lemon-law time window, then you're basically at the whim of the manufacturer to fix it.
As for electronics, if you buy from a company like Apple that has a good warranty or return program, buying a new device on day-1 isn't that much of an issue. I've owned 3 models of iphones (original, 3Gs, 5), and every one of them I got a full replacement from Apple on (original I had replaced twice). All 4 times I've had my iPhone replaced, it didn't cost me anything to do it. (Note that I've had great service from other companies like Amazon with the Kindle and Philips with their electric toothbrush).