Designing mains power feed for maximum equipment lifetime
Both will work ok and will not damage anything. I have several notebooks and some are always plugged in, some are regularly disconnected, everything just works fine for many years already. Modern devices are designed to work under both conditions.