That is hardly will be of any consolation. AI will probably destroy capitalism, but not because it will replace some useless f.ucks from their useless computer jobs (most of them will perfectly fine find another more useful job, if only way less paid), but because with surveillance and totalitarian control that AI capable of, socialists like Stalin or Hitler will build resilient and durable society where no member will have any way for resisting.