RAG vs Fine-tuning: Which is Better for Your LLM Strategy?