How do you decide whether to build a capability in-house or buy it?
Build what your users pay you for and buy the rest, correcting that heuristic for switching cost and data gravity. The comparison people get wrong is licence fee versus zero, when it is really licence fee versus salaries, on-call and opportunity cost for as long as the system lives.