Investors worry that Amazon is overinvesting in artificial intelligence, but Wall Street says the stock is undervalued.