TL, DR:
In an ideal world, many Stack Overflow users would be educated enough and using comments like T.J. Crowder suggested in their answer after carefully considering suggesting CR... but we all know that with the amount of traffic and new users coming daily, it's difficult for everyone to know about this, and if there are ways to automate some of the moderation, it would be a great service to everyone involved.
More details
Having been a regular on Code Review for years, and knowing many of the regulars as well as moderators, I echo that it's a relief that this is being discussed on Stack Overflow.
As was mentioned by gnat in a comment on the OP, the method we have been using for the last few years involves a lot of manual intervention on our part to try to reduce frustration for SO users who are referred to CR.
those interested in closer study / sampling / statistics of comments (mis)leading askers to CR.SE can find most if not all of them conveniently listed in Duga messages to CR.SE chat room (over 16 thousands examples) – gnat Jan 26 at 8:47
The comments loosely fall into a few categories:
1. Inappropriate / Unacceptable comments
We've all seen this type, usually goes something like:
"I'm voting to close this question because it belongs on [other site]",
"This question is off-topic because it belongs on [other site]".
Whether the other site is Code Review or not, we all know that that is not and has never been a valid close reason. We at CR have been fighting this behavior through manual intervention on SO (which often turn into arguments which are irrelevant to the question itself).
These can be very frustrating to us (CR regulars), SO users who have made the comment, and to the OP especially if this is their first experience on SO. If there was a way to somehow auto-flag these kinds of comments and delete them, that would certainly be a huge improvement.
2. Misinformed comments
These comments, while not falling into category 1, can be misleading if the person making them...
Haven't read the question thoroughly to understand what the OP is asking for
Are not as familiar with what is "answerable" on SO (while it may be on-topic on another site, it may also be fine on SO)
Are not familiar with what is on-topic and what makes a good question on Code Review
As was mentioned in the question:
The main thing is that I grow weary of commentators "phoning it in" and instantly thinking, "Oh, this looks like a code review. I should tell them to go to Code Review," when in reality it ain't.
If we are able to catch those in time, through manual moderating from CR regulars/mods, we can try to prevent a frustrating experience with questions being cross-posted / removed from SO when really they would have been fine on SO, or will not be very good for CR.
An example of this kind of question we see fairly regularly that (in my humble opinion) would be better SO questions than CR, while still being generally on-topic at CR...
I have this code/algorithm that does X, I'm not happy with it, does someone know a different way of achieving X?
While it sounds like a code review request, and the code is working, it really isn't a code review they are looking for, and I think this would be an answerable programming problem/question on SO.
3. Good, informative comments
This is the kind of comment that T.J. Crowder suggested in their answer. The comment is good (as long as the context is appropriate) because:
It states what they perceive the intention of the OP is (help improving working code)
It suggests that it may be a better fit on another site (in other words, it's not off-topic on SO, but they may benefit more on CR)
It recommends the tour, help center, and as a bonus even a link to the on-topic page on CR, which is excellent "customer service", so-to-speak
Encouraging more of these through education of users is something we should definitively work towards and commend.