I spent years treating switches as the thing you cover with a fresh coat of paint and never think about again, the last item on a renovation list, right below "clean gutters." What changed my mind was pulling the cover off a toggle switch in a house I was working on and finding a little brass mechanism underneath that had been flipped on and off for the better part of a century without a single hitch. That made me pay attention.
If you're buying new ones, there are a few things worth checking before you leave the shop or the moment the box lands on your porch. Flip the toggle or rocker a dozen times right there, it should feel decisive, a clean click with no wobble or hesitation in the middle. Check the plate for warping, cheap stamped metal will bow slightly and never sit flush against the wall no matter how carefully you screw it in. Look at the screw terminals too, not the push in holes on the back, because those push in connections are the first thing to work loose and start arcing after a few years of a door slamming nearby.
The difference between a switch that lasts and one that turns into a nuisance by year two comes down to what's inside, which nobody ever thinks to ask about. A well made one has a mechanism with real spring tension behind it, usually a bit of weight to the toggle or rocker itself, and contacts that are properly rated for the load rather than the bare minimum. The cheap ones feel light and a little plasticky in your hand, and that's not just a feel thing, it's a tell about the metal gauge inside too. I've pulled switches out of walls that were original to houses built before electricity was even common in private homes, retrofitted decades later, and the brass yoke on those things was built like it expected to outlive whoever installed it. New switches rarely aim that high, but the good ones still aim higher than you'd guess from the price tag.
Where they go wrong is mostly about mismatch rather than failure. A bright modern rocker switch stuck in a wall full of picture rail and plaster cornicing looks like it wandered in from a different house entirely, and a reproduction toggle with a faux aged finish next to genuinely old hardware shows itself immediately, the metal always gives it away. They also don't love damp spots, anywhere near a kitchen sink splash zone or a bathroom without proper rating will shorten their life no matter how well made. A house move is actually where a decent switch proves itself, because it's one of the few things you can unscrew, pack, and reinstall in the new place without losing a bit of function. Find one with real weight to the action and a plate that sits flat, and you'll stop noticing it again for a good long while, which is really the whole point.