Palantir stock surges as artificial-intelligence gains drive an earnings and revenue beat, China begins an antitrust probe into Alphabet’s Google, and Merck stock sinks on weak guidance.