I would also throw Milwaukee into the mix, same company as Ryobi. I have Makita, one brother has DeWalt and one has Milwaukee, and Milwaukee stuff has performed really well.
The Milwaukee brushless impact driver at work although way overkill for DIY (used for M16/24 bolts mostly) is a very impressive tool. Gets constant (ab)use (like dropped off a MEWP or soaked in acid) and doesn’t miss a beat.
I would also throw Milwaukee into the mix, same company as Ryobi. I have Makita, one brother has DeWalt and one has Milwaukee, and Milwaukee stuff has performed really well.