I appreciate that she acknowledges that rebase is a weird thing to do to a branch. I know it's an ordinary part of many folks' workflows, but it's such a footgun.
Many hosts allow you to set rules to protect branches from getting their commits removed in the remote (in fact, I think that's the default for gitlab main branches) or to prevent people from pushing their commits to them directly.
I expect even "the main branch has to stay more or less in sync with origin/main" can be automated... though it might not be what you always want, depending how you work.