Yes car enthusiasts love to point out that law all the time, but I've never heard of anyone having say, an alternator go bad, have an aftermarket part blamed for it, then taking the dealer to court over it and winning. Maybe if you are an lawyer you can manage to do that and come out ahead.
In real life people just generally eat it.