These companies’ central positions in the artificial intelligence megatrend look secure.