Amazon.com Inc. may be a leader in the artificial intelligence race, but investors are increasingly unwilling to pay up for the cost of maintaining that position.