Normal folk in Ukraine and Afghanistan are minor players in a much larger game. They don't count.
Afghan funds the Taliban may have access to would be spent on that which the Taliban regard as a priority - likely to include arms, bribes and "sweeteners" for their senior leadership.
Food supplies healthcare, power supplies, clean water are likely to be a lower priority and controlled by the Taliban to reinforce Taliban control.
The west (UK, US etc) protest they will do all they can to avert a humanitarian crisis. The reality is they can do close to nothing. They assumed the Afghans could hold the Taliban at bay as they left a sinking ship - they either anticipated the outcome and left anyway, or their intelligence was abysmal.
Ukraine - a cursory look at a map of Europe shows that the once Soviet controlled "buffer" states of Estonia, Latvia, Lithuania, Poland, Hungary, Romania, Bulgaria are now NATO members. The major buffers are now just Belarus and Ukraine.
For Russians of a certain age this is a major threat. That we consider their concerns ill founded does not alter their perceptions. The West will not agree to exclude Ukraine from possible future membership of NATO - therefore the Russians cannot discount it as a risk.
The result - Russians threaten and know they could take Ukraine unopposed. The West will not put troops on the ground - it is a path to uncertain escalation. The West postures and threatens sanctions - although I struggle to think of a single instance where sanctions have been effective.
Neither Ukraine or Afghanistan demonstrate the supremacy of decency over political and practical realities. Western leaders need to satisfy their electorate with a veneer of concern - it's good for votes and righteous. The Russians have no similar constraints - one could easily regard them as more honest.