The success of both of these stocks hinges significantly on their opportunities related to artificial intelligence.