Now and then, I've heard that rebooting is good for keeping Macs running smoothly, or maybe it's apocryphal. I tend to do it every day or so, but not sure why. At this point, it's sort of a compulsion. What do we actually know about if it's good, bad, or indifferent for a Mac?
Ages ago under Windows, you made a shutdown every time. Later on, with Windows, you could close the lid on the laptop but after some time, you got the feeling that it was necessary to restart because the machine began to behave strangely. This is, in my experience, still the case with Windows, albeit less a nuisance than in former times.
Macs feel different (I can tell from 2015 on). Closing the lid/going to sleep and awake again usually does not hamper the system, at least not in most cases (YMMV).
But sometimes even the Macs feel strange. And as we know from the eternal wisdom of IT admins, the best first try is a restart, solves 90% of all problems
Therefore, and because with every macOS update one gets inevitably a restart, I cast my vote for "only if necessary".