DeWalt (aka default) tools. There's a reason every building contractor is carrying around DeWalt drills and saws - they hold up to daily jobsite use, you don't have to handle them like they're fragile, you can get them dirty and they keep working.
Don't buy Ryobi or Black&Decker unless you know it's something you're going to beat to hell for one job and then dispose of. And don't any buy high speed rotary tools from Harbor Freight.
The second part of your comment is flat out wrong for most homeowners. Ryobi tools are fine for Henry Homeowner. And specialty tools from harbor freight are fine. Buy cheap and if you use it enough to break it, then buy quality.
Also for more active hobbyists Harbor Freight can be improved to be good tools. Things like replacing a cheap drive belt with a better quality belt is all some of their tools need. Searching some tool blogs can tell you if a tool is fixable or just trash.
They have been a shit-tier tool for a long time after being dead solid for decades. I don’t know if they’ve moved up to “ok” recently, but I haven’t bought B&D in 15 years because they were crap.