http://news.ycombinator.com/item?id=1012215
Simply compare the "title" field of the referenced page. If it matches, perhaps compare the domain name, ignoring any "www". Or perhaps not bother. The number of occasions the title matches when the page is different should be sufficiently small.
-----