Alphabet and Tesla shares tumbled after earnings highlighted surging AI-related capital spending, weakening cash flows.