But you're correct in that the current algorithm (or any sufficiently transparent algorithm) does lend itself to gaming. It might be harder to game if you didn't mind penalizing comments based on the quality[1] of replies they generate, then sorting based on the thread's average quality would mean that there's less incentive to post in the top thread just to get exposure, since your new, karma-less post will drag down its average and subsequently could drag down the thread. That could get prohibitively expensive to calculate for huge threads, but would be less prone to gaming, I think.
[1] If we can hand-wave "karma" to mean "quality"; I get way more upvotes when I am flippant but technically correct than I do when I try to be thoughtful.