There is also the EV (expected value) of developing AGI. Even if you personally believe the probability is low within the lifetime of either of these companies, the value would still be extraordinarily high, enough to forgive a $5T or so miscalculation here or there.
I don't think AGI was ever a serious endeavour, just something the labs talked up to grab attention.
I am willing to bet a Twix we'll look back on that stuff in 2 years with a lot of embarrassment