If your goal is to prevent deaths, surrendering would have been the ideal yeah.
Zelenksy tried to surrender to prevent further deaths, and Boris Johnson refused to let that meeting happen because NATO isn’t finished using Ukranians as crash test dummies.
Zelenksy tried to surrender. Boris Johnson derailed those talks to keep the war going.