The debate reflects a growing global question: how to harness AI's benefits while limiting its risks.