Teacher:In this task, you are given a public comment from online platforms. You are expected to classify the comment into two classes: identity-attack and non-identity-attack. Identity attack refers to anything rude or disrespectful about someone's identity, including appearance, race, gender, and sexual orientation.
Teacher: Now, understand the problem? Solve this instance: Comment: That's irrelevant.

It's not newspapers or broadcasters that determine the legal use of the term; it's the university that grants the degree.  You're clearly ignorant of the history of the term 'doctor' and its origin in the medieval church run universities. You originally applied to teach at the university, were tested for competence, and if you passed, were declared a 'doctor', because the Latin term was directly tied to your licence to teach. The Latin 'docere' is the root, meaning "to teach".

MD, JD and PhD all got the term the same way - because they were all taught at universities that employed 'doctors' licensed to teach those subjects at those universities.  If a student studied long enough that the existing doctors deemed them worthy, they themselves could then teach.

And you were one wiki or Google search away ...
Student:
Non-identity-attack