I flagged the comment on this question because the code was in the question body: Magento 2 login customer programmatically without password
As stated in this meta post, this comment is clearly obsolete but still it was declined with no explanation.
Any reason behind that ?