That's arguably the expected behaviour - for a discussion, 'link' effectively takes you to the comments, for an article (or a link to a image), it takes you there instead.
You could use 'guid' instead - that always links to the post on Lemmy, and it usually contains a useful thing on other sites' RSS feeds.