I would go for Electrolux from second hand store, at least 15 years old. So far in my life I only bought one hoover. Still going strong after 30 years, just a new bag and filter now and then. And I had to replace the power contact once.
Warranty is still the legally required minimum of 2 years for Miele. You have no guarantee it will last longer than that. If Miele had so much confidence in their products lasting longer they'd offer longer warranties like Samsung does on their SSDs of 5 years or so.
The concept of "Miele lasts forever" is as outdated as the "German cars last forever". It used to be true in the past but we can't be coasting on that trope today.