They will lose either way, but they'd have less debts to paid and less things to rebuild.
Also Ukraine will benefit from denazification, the ultranationalism pushed by the ukranian nationalists only brings zero-sum situations for Ukraine and its neighbours not just Russia.