TLDR; I disagree, you must've been doing something wrong.
Milwaukee is considered by most to be one of the top, contractor grade brands and are very reliable, but no matter what you get, you must operate within the limits of what that tool can do, not push it too hard. Using that strategy, more and more pros are even using homeowner grade brands like Ryobi or Craftsman.
I wouldn't call Ryobi junk. I used the Craftsman version of a drill (both CMan and Ryobi have been very similar lines from TTI until the recent CMan line from Stanley B&D) dozens to hundreds of times a day in a trade years ago, and they have only gotten better since then, especially their current generation Li-Ion tools, BUT you need to consider how heavy duty and expensive a model you need, as Ryobi as well as the pro brands, offer different tools at different price points.
My ancient 9.6V Craftsman drill still works. My slightly less ancient 14.4V Dewalt drill still works. Neither of them still make batteries for these models (except 3rd party junk generic batt packs) so I've rebuilt the battery packs on both, but could not justify doing it again (due to being NiCd) so I went with Ryobi because they've kept the same battery pack format for far far longer than anyone else.
I currently have a few Li-Ion powered Ryobi tools including some that're brushless and am quite happy with them, yet I still use a corded hammerdrill for masonry, a big, slow, electronic drill for high torque mixing/etc, and a drill press any time I can take the work to it.
There are so many different TYPES of drills because each has its virtues for a particular job. You didn't go into depth enough about what exactly failed on your Milwaukee but if you stripped the drivetrain out, odds are you were trying to use too much torque and in that case if you want to go cordless you should use an impact driver or impact wrench.
Yes Dewalt are good, if you get their upper tier models. Their lower tier aren't much better than homeowner grade (sometimes worse if comparing a low tiered Dewalt to a higher tiered Ryobi/etc), but have fairly expensive batteries.
The same is true of Milwaukee, Makita, Bosch, but paying a premium for a high end tool is not a good substitute for using the
right type of tool for the job, and yet on the other hand what you linked is one of Milwaukee's low end drills so you'd get a more robust Milwaukee at a higher price point.
Shop heavy duty drilling power tools including drivers, hammer drills, magnetic drills, right angle drills and more.
www.milwaukeetool.com
If your drills are no longer under warranty but are compatible with their current generation battery packs, then I would get another, but higher tier Milwaukee drill as a bare tool and reuse the batteries and charger.