Zelenskyy suggests he's prepared to end Ukraine war in return for NATO membership, even if Russia doesn't immediately return seized land

https://sh.itjust.works/post/28792564

What exactly makes him think putting any part of Ukraine in NATO is going to make Russia suddenly stop invading them, rather than spark an even greater conflict? Has Putin offered any kind of deal like that?
Probably an assumption that Russia wishes to continue to exist.