Better to just switch where you can and invest resources into improving FOSS offerings to handle the use cases it currently can’t.
If you want to give the users a nice programming environment you can't also prevent them from doing arbitrary computations.
You can run Excel in a VM if you want.
That, but also lack of feature parity. Unfortunately Libre Office is just not very good
In fact, I'd argue that in some cases these are higher. A good example of this is that piece of shit that is Microsoft Teams - both the horrid security flaws and the ways it keeps breaking. I've used FOSS equivalents and they have a smaller attack surface and are more reliable.
They also play all sorts of user-hostile tricks that make vendor lock in possible, and this often has an underappreciated impact on delivery.