Palantir has been one of the best AI stocks to own for three years straight.