RAG vs. Fine-Tuning: Which One Suits Your LLM?