The first link which contains an exact match is the stackoverflow question I asked after posting this bug report. 😅
The second link is just an index page which contains a link to my stackoverflow question.
So, it seems like Kagi is showing me accurate results now. I don't see any of the pages that appeared when I originally reported this issue.
I hope you're having an awesome camping trip (I saw your tweets). ⛰