I know you were emphasising the difference from canon - I was just jumping ahead a bit and trying to continue the parallel with Wilde! I do think the "what" matters, in that Wilde was prosecuted for something he did commit, but that isn't a crime today, and which we wouldn't disapprove of at all. Whereas Sherlock was vilified for something which would be deplorable if it was true (kidnapping children, possibly murder, etc. to make him look good as a detective). Sherlock was rightly vilified, Wilde wasn't. I think the parallel loses direction there. What point would they be making? Sherlock kind of brought about his own downfall deliberately (by promoting himself to snare Moriarty - and later, I suppose, it was necessary for a convincing "suicide"), and his exile was planned and voluntary.
I do remember reading that ACD planned for The Final Problem to be the end of Holmes (although I'm sure I also remembering Moftiss saying, that of course he didn't, because there was no body and he must have left it deliberately open for a possible comeback!). Which may be one reason why he made him go out heroically rather than with his reputation ruined. Whereas Moftiss make it clear even within the episode that they are not killing Sherlock off, so they were more free to do what they liked with his reputation, and leave us with a cliffhanger!