Investors have punished big-spending tech giants and software companies while betting on memory chips. Ad and cloud growth acceleration justify the recent surge in Alphabet’s stock, but the blowout ...