If Samsung phones are bad, don't buy (another) Samsung phone. But when you need a dish washer, and reviews say that Samsung's is the best bang for your buck, their adware-laden phone has literally nothing to do with the decision to buy the Samsung dish washer. They are completely different products, made by completely different factories with completely different QA processes, and completely different target demographics.
Don't judge brands, judge product lines by brands. Because quite often, the people making one thing have nothing to do with people making another thing, they're completely separate "we can't call them companies on paper but in practice that's exactly what they are", and the owning brand itself has barely anything to do with the products they make, unless it's their major brand-recognition product.