Short answer: use deterministic rules (reference, phone, amount, date) for the majority of matches, and AI only for messy free-text references, always with a confidence score and human review below the threshold.
Rules are better for money
Rules are predictable, auditable and fast. Most payments with a correct account reference should never need AI.
AI is better for language
References like "fees ya Wanjiku form 2" or "rent B4 Oct" need language understanding. AI can propose a match and explain why.
The combination
| Approach | Strength | Risk |
|---|---|---|
| Rules only | Auditable | Leaves many exceptions |
| AI only | Flexible | Unpredictable for money |
| Rules + AI suggestions with thresholds | Best of both | Needs good review UX |