Ash existed as a subroutine within Esra, so no she didn't exactly "survive" per se, just that a fraction of her was still within Esra. And the lesson... I guess you might be right.