In Microsoft v. Google? They'll both run out of upside long before they run out of money, that is to say, both can spend amounts of money unbounded by the actual quantity they have as other bounds kick in first.
Just looked up the latest balance sheets. GOOG has $12 billion in cash, MSFT $6 billion. And GOOG had positive cash flow in their last quarterly, MSFT was negative.