I for one "know" this by weighing HN anecdotes I've seen over the years - couple dozen saying that they sell solid stuff, and one or two saying that they used to sell solid stuff, but are now following the trend of replacing metal components with cheap plastics. How do I evaluate that? Brand trust isn't that strong a signal.
So as a consumer, I am unable to decide objectively, just using rumours if there isn't a hard guarantee or a trustworthy evaluation of the quality of all products I could pick. In that situation, I will price in the uncertainty, I will evaluate the rumours and the tendency to produce crappier stuff over time. And when in doubt, buy 4 cheap short-lived washing machines instead of 1 for 4 times the price.
A long warranty, while not a guarantee, is pretty correlated to the product lifespan.
A long warranty is only good if the manufacturer is trustworthy. But untrustworthy manufacturers are one of the causes of the whole problem.
A fix might be warranty terms defined by law, where the manufacturer can pick the duration and nothing else. Disputes should be settled in court or by a neutral board of experts.
Of course this is not a perfect measure, but I do think that a correlation would exist here.