In the first weeks after OpenAI released ChatGPT to the public in 2022, Anton Pavlovsky, the chief executive of the Ukrainian edtech startup Headway, was wary of the artificial-intelligence hype.He decided his then-three-year-old company should adopt a defensive strategy, letting other companies take the lead in generative-AI investments, and reaping…