Not necessarily. You can also attempt to disconnect your economy from AI-driven economies. Yes, tariffs. :-)
That path is hard and risky (are AI countries eclipsing us in military power?), but probably more realistic than hoping for global cooperation.
So basically being Amish
So it's either "we all science ourselves out of a job and die from uncontrolled capitalism" or "we try to do something about the uncontrolled capitalism and in the meantime, everyone else keeps sciencing everyone out of a job". The result is the same, but some of us at least tried to do something about it.