An "engineer" is someone who works in a technical profession with a governing body. Either the State, or an entity that might as well be the State.
An engineer is certified by that governing body, and given a license to practice the profession. An engineer can have their license suspended or rescinded, in the event of professional misconduct or malpractice.
Whether through law, or de facto through insurance company practices, employers face liability if they employ non-licensed engineers. So an engineer is someone who has the leverage to push back against employer pressure to commit malpractice.
Computer programmers / software developers have none of these things. Certifications are a joke, and meaningless beyond the entry level. We are pressured by employers to commit malpractice on a near-daily basis, and call it "tech debt" (management at my current company is pushing the even more euphemistic term "tech improvement opportunities").
Without a governing body and licensing, it is impossible for us to be "engineers" in any real sense of the professional term. With respect to Margaret Hamilton, we can only try to emulate an engineering profession as best we can, by evangelizing professional standards and pushing back on malpractice pressure where we can.