I’ve just learned to discern quality better. For clothes, I learned from a friend who designs them how to tell fabric quality and seam quality. But there’s online resources to learn that as well. For electronics it can be hard but if I can’t tell from first principles and my knowledge of electronics design I’ll research brands via online reviews and tear-downs. Eventually you get a pretty good “instinct” that makes it less tedious.