I don’t see how ai could be any danger to capitalism. Capitalists are creating it, for profit objectives. Anything that resembles actual artificial intelligence created under them will without a doubt be bound to their makers, to capitalist ideology, to maintaining the status quo.