Batch vs Real-Time AI: How to Choose for Cost and Speed