The hardest part about investing in artificial intelligence isn’t believing in the technology—it’s deciding which companies will actually profit from it. Will chip makers dominate? Cloud providers?