Afghanistan is an awful example because there was a large number of civilians dead as a result (many times more that foreign soldiers), country having to live through several devastating wars, poverty, and a terrorist group became the government in the end. This was much worse thing than what is happening in Ukraine.
> This was much worse thing than what is happening in Ukraine.
The only reason Ukraine is yet to be as worse for civilians as Afghanistan is the fact that Ukraine successfully routed and defeated Russia's initial invasion push.
Look at Bucha to see a real world example of what expects Ukraine if they capitulate.