These companies are spending a fortune on artificial intelligence (AI), and it could strengthen their competitive advantage.