This is untrue. It's a software issue, not a hardware issue.
While I'm no longer using my moto x, when the battery would suddenly crap out at 8, 12, 15 or 20%, I could immediately put it on a charger, unplug it, and the given percentage will be useful right down to 0%. There's battery life...