Ultimately, this is a situation in which doctors doing this is worse in the long run.
Burning yourself out to cover for understaffing means both worse life balance for you BUT ALSO worse patient care.
No one quantifies how many people die, or how many diagnoses are missed, or how many patients feel unheard and become disillusioned with going to doctors, because doctors are dead tired and mentally burnt out, because they're trying to do right by patients.
You have to force hospital admin and owners do THEIR JOB, which is (in part) to provide needed staff to run properly, by not letting them exploit or impart a hero complex onto a job.