Elon Musk's companies are spending heavily on AI ahead of an expected X Corp. initial public offering and a pivot at Tesla ...