Twenty year old DeWalt rechargeable drill, here. Still chugging along. Two battery packs when purchased, only one of battery packs went to scrap probably about eight years ago. Hard to believe, twenty years on the other pack!
Don't know how the newer model drills hold-up, I know they changed the battery pack voltage.
Oh, on the cord vs cordless question. Cordless for most things. This drill starts to struggle at around a 1 inch auger through 6 inch treated wood for example. Drains the battery quickly, though. Using good bits, have drilled into a variety of metals. I have a Bosch corded hammer drill for the serious work but, as Larry notes, for convenience the battery powered drill is the go to drill. I could use a real bench press drill for precision. Maybe one day a mill like Colanoscopy's.