Long before AI destroys humanity, humanity will have destroyed itself, by deploying AI with no attention to its consequences, thereby creating a world with no jobs, and no market to sell to.