SAN FRANCISCO—It may be called Alphabet. But the geeky humor is vintage Google. Alphabet, Google’s new parent company, announced the tech giant’s first stock buyback on Thursday: nearly $5.1 billion.