Know your brands.
Some drills we get are in pristine condition, less than six months old. Others have lived a long life before gracing our doorstep. Ironically, it's the old beat up ones that still work.
Many of the newer, cheaper models are clearly designed to break.
Chat forums or magazine reviews may offer some insights. Reviews can be tricky as they're often posted within a few days or, at most, weeks of purchase.
Asking at the store which brands are more likely to be returned can help.