I have never seen a single laptop that did not keep the battery topped up to 100% (4.2V per cell). That's what's bad for the battery. Keeping lithium batteries at 100% state of charge degrades them very quickly. A lithium battery kept at 100% for a year at around 75°F will lose 20% of its capacity in the first year. If the temperature is warmer, like 100°F like laptops often are, you lose around 35% in the first year.
Except that they don't take the battery to maximum charge. The "100% charge" displayed is actually some percentage that they determined is the best trade off between battery life and usable capacity. I forget the details but it's probably something like 80-90%.
Allowing the battery to completely discharge and then stay in that state is terrible for the battery yet it routinely happens and still mostly the battery works well enough. Again the battery doesn't have to work 'well enough' forever; just the 4 or so years they expect the laptop to be in use.
I have an old Dell laptop that's more than 15 years old that I pull out maybe twice a year to administer some routers. I plug it in the night before and still get a couple hours of battery time the next day. Yet I've had laptops that started to show significant battery capacity loss after 6 months. Again my point is there are many factors that contribute to battery life and IMO leaving it plugged in is one of the lesser concerns.
(post is archived)