NATO expansion was a necessary condition for the war. Not a sufficient one.
The war is all on Putin. Ending it is also Putin's call. Zalenskyy has supported every ceasefire proposal - Putin has not. Not one.
There is no moral equivalence here.