OpenAI Assistants API vs Custom Agents: Full Comparison

Should you use OpenAI's Assistants API or build your own agent loop? Here's the honest tradeoff analysis with code examples for both approaches.