Off-the-shelf platforms are excellent when your process matches the mainstream. The cost is not the licence; it is the workarounds.
Build custom when your process is a competitive advantage and you cannot afford to flatten it. Avoid building custom when you are optimising a routine that most of your competitors already run the same way.
The honest middle path is usually a platform for the commodity parts and custom integrations where your advantage lives.