Both tech giants are pouring tens of billions into AI infrastructure -- and both throw off enough cash to keep doing it for years.