To the OP’s point, sure, some cantrips can easily bypass “things”, but I wouldn’t call them “challenges” because they are easily bypassed. The DM knows what the party can do, don’t get mad at what the party can do, it’s old man yelling at clouds. PCs have always been able to open doors, still fine to design dungeons with closed doors, because doors, and the the fact of them being closed makes sense. They’ve never been challenges, unless your PCs are 2yrs old. It’s the same thing with stuff cantrips can easily solve. Those things may still need to exist in the world, for that world to make sense, but they just aren’t challenges, even if they would be for a normal person.
Yeah. If someone uses mage hand to do something you didn’t expect, awesome, but if you’re upset they’re using it to do obvious things, um, why? You know what they can do, bend world accordingly.
Thing is, if it’s cheap to do something, the game, the world, must accept that and be a place where sure people can do that, all day, so the world must be a place that accounts for that.
Why change the game to adapt to your world, make a world that fits the game.