My wife plugs her phone in every night as a matter of habit --- just to be sure, whether it really needs charging or not. I know from experience that this degrades the battery lifetime.
Smart charging would be: "start charging now and finish at time my alarm is set, while reaching 80% battery." Slow charging to 80% and your battery can last multiple times what it would "normally". I don't understand the craze for 40-60-100 watt phone chargers...
I've discontinued the automation and will just buy a new battery in another year or two instead. /shrug
If you’re always topping off the charge at night, the cells in the battery pack are still experiencing full discharge cycles eventually. (Cells will end up staying at 100% charge for a while though, which is probably ultimately bad for them, but they should still be fully discharged/charged eventually…)