Predictive vs Generative AI: How They Work and When to Use Each