C3.ai and Palantir are taking very different paths as enterprise AI shifts from hype to execution, raising fresh questions for investors.