Maybe in this case the editor's comments were not helpful, and maybe OP is right for that. I do not see how this generalises to a rule "do not take advice from editors that reject your manuscripts".
For one, in scientific publications, when you get rejected based on reviewers' comments, chances are if you send the manuscript to another journal the article will be sent to the same reviewers, and if unchanged will be rejected again. Not taking advice into account, as a general rule, sounds like very bad advice.
I am not sure how this is "sound advice".
Maybe in this case the editor's comments were not helpful, and maybe OP is right for that. I do not see how this generalises to a rule "do not take advice from editors that reject your manuscripts".
For one, in scientific publications, when you get rejected based on reviewers' comments, chances are if you send the manuscript to another journal the article will be sent to the same reviewers, and if unchanged will be rejected again. Not taking advice into account, as a general rule, sounds like very bad advice.