I have a very different take on this.
Your 2019 iMac has a coin-type internal backup battery, sometimes called the PRAM battery. Its purpose is to preserve things such as startup disk and settings should the computer be removed from wall power temporarily for moving or service.
When the computer is connected to wall power, there is a bypass circuit the diverts a tiny "trickle" current around the power supply to maintain settings; the battery does not have to work unless power is disconnected.
Unplugging every day will cause the life expectancy of the PRAM battery to drop from years to months. If it dies, you have to reestablish the setting every restart. I had this happen to a company Mac that I turned off at its battery backup every night— same as unplugging AND recommended by one of the Windows-leaning company IT techs.. After a few months, the computer started showing odd symptoms including not knowing where its startup disk was. A new PRAM battery and not cutting power any more fixed that.
Here's the rub: to replace the $2 battery in a 2019 iMac requires a significant teardown of a computer Apple did not design to be opened by us mere mortals. It's sealed. A popular self-service site show 62 steps 😳 to simply access the PRAM battery, and more to reassemble.
A local service provider owner told me it takes his crews two hours to open, service, repair, and reseal a 2012-2019 iMac. He added that tech labor costs in the US Inland Northwest are US$65-80 per hour. That is up to $160 plus the cost of the reseal kit to have an iMac PRAM battery replaced. That turns unplugging to be "green" to save a few cents a week into a very expensive gesture.
There was a time when we could quickly remove and replace a PRAM battery from most Macs without tools. We took advantage when storing our Macs. If it was for more than a few days, we pulled the PRAM batts and taped them on the inside of the case. Easily-accessible iMac PRAM batteries are long gone, sacrificed before the Altar of Minimalist Design.
We turn off our iMacs while traveling but never unplug them for more than a few hours at a time. Anything more is pushing the PRAM battery beyond its intended purpose.