Alphabet shares have rallied in 2026, fueled in part by the Google parent’s artificial-intelligence ambitions.