Watching a patient die without doing anything, can you call yourself a doctor? To tell the truth, the law doesn't allow doctors to evade like this, it's also against the rules, and they must bear the corresponding legal responsibilities. There are already court precedents for this.
The reason why it takes so long to train a doctor is exactly here, you must step in at the critical moment, no retreat. Even if you're unsuccessful, you must still meet the technical standards, otherwise it still falls within the doctor's responsibility.