I have recently asked a question where an answerer kindly gives me a working solution, though not as automated as I wanted.
Seeing that the answerer seems to have better knowledge than me - but at the same time realizing that his solution seems to lack "automation", I further ask him in the comment if he knows of any more "automated" solution than what he originally posted. He sincerely said that he is not aware of any. And thus, I accepted his answer as it is working nevertheless.
A day later, another person comes to see my question and suggested me to look at a post which may contain a better - more "automated" - answer to my problem. I opened the link, and there it is! I found what I am looking for!
(Note: The title of the post is quite different than mine. Thus, I did not expect that the solution I wanted can be there)
And so I thank him and upvote his answer - thinking that it should be the answer for my question. However, now, I am wondering if I should somehow make a redirection somewhere in my post to his answer - for the sake of those who may have the same question.
Should I do that, say, in my question?
Normally this is done by marking it as a duplicate of the later question, but the two questions here are actually quite different though the solutions are not that different.
What is the correct thing to do in this situation?