せずにすんだ

managed to avoid; got through without having to

→ 為る
phrase Rare #36,656
managed to avoid; got through without having to Used to say that something undesirable was avoided or did not end up happening. せずに means “without doing,” and すんだ is the past form of 済む, indicating that the situation was resolved without doing it. The expression is often written as せずに済んだ.
JA: 幸い、怪我をせずにすんだ。
EN: Fortunately, I managed to avoid getting injured.

幸い怪我をせずにすんだ

Fortunately, I escaped without getting injured.

幸いにもけがをせずにすんだ

Fortunately, I escaped without getting hurt.

会社は何とか倒産せずにすんだ

The company somehow managed to avoid going bankrupt.

そのようにして彼は事故でけがをせずにすんだ

That way, he avoided getting injured in the accident.