Prefer `fail(` over `assert(false` (#27974)