Rules match against the transaction description (case-insensitive). First matching rule wins.
Unique descriptions with no category — use these to create rules.