Context and intent matter. Pretending like all cases are equal only enables bullies. Doxxing an innocent person minding their own business because you don't like their race, gender orientation, or sexuality, is entirely different from doxxing someone in retaliation for their bad actions.
Do you really think that doxxing and harassing schoolteachers is the same as doxxing someone who goads others into suicide?