In SSDs, there is a huge difference in build quality, which comes from over provisioning: All flash chips in SSDs will eventually wear out, but not all at the same time. SSD vendors deal with that by over-provisioning: If you buy a 1000 GB SSD (just as an example), it might have anywhere between 1100 and 3000 GB of flash in it; the one with 3x over provisioning will live for a long time, even under write-intensive workloads. Obviously, the price between those will also be radically different.
If you can afford a drive with 5-year warranty, that's goodness, because those drives are typically intended for enterprise use, and typically much better built. In spinning disk drives, the length of the warranty seems to be the best statistical predictor of the average life span; I assume (without proof or experience) that the same business logic that goes into that applies to SSDs (after all, they come from the same vendor).
Having said that: I've had no failures at all with about a dozen consumer-grade Intel SSDs (which are by now roughly 5 or 6 years old), and with two Crucial SSDs (those are coming up on 3 or 4 years). But that's not a statistically significant sample.