I mostly agree with you, but to the extent that your software competes with other, similar software built by companies with similar cost structures and addressable market, the cost of that sweat factors into their costs as well, so does have a (loose) connection to the viable costs for that software in the market.
1. https://en.wikipedia.org/wiki/Sunk_cost