The best-performing stock on the S&P 500 this year isn’t Nvidia or Tesla, but rather another, more under-the-radar name benefitting from the artificial intelligence gold rush: Palantir Technologies, the data-hungry defense contractor run by eccentric billionaire Alex Karp.