> The process of writing a high-quality question, with a minimally viable example, clearly lined out thought-processes, and other things tried, solved the question for me in most cases without me ever having to post it.
Nevertheless post the question and provide an answer. Everybody wins: you reap the upvotes, and everyone else benefits from the shared knowledge.
You don’t mark answers as duplicates, you mark questions as duplicates. And if it’s a duplicate question, the new answer should be posted to the old question. So it’s correct to mark the question as a duplicate. Otherwise all the people arriving at the original question won’t see the new answer.
https://en.m.wikipedia.org/wiki/Rubber_duck_debugging