Palantir is selective about its customers, and investors might want to consider buying shares of some of its partners, according to one analyst.