Opportunity cost is the standard, not profitability. Companies generally try to invest in their core competencies and outsource the rest. The Nvidia deal with Groq is an example. They spent $20B for Groq's inference technology while leaving their profitable cloud services business alone. Selling shovels instead of mining gold can be a rational choice even when gold mining is profitable. And the shovel companies do better when gold mining is profitable.