There is a lot of resistance from the Ukrainians to going to the frontlines as we can see in the endless videos of people fighting the government “recruiters” who come to forcibly take them and the large stream of people fleeing the country. It’s hard to tell if the will to continue fight comes from the people or the government, it’s not nearly as clear as you imply.
In my view, it’s a huge crime against life for this war to continue. A compromise is the only solution. From both sides of course. But it seems both sides still consider the continuing fight and death toll is worthwhile and preferable to the compromises they would need to make to end the craziness. We will look back at this time as a huge failure of Europe and the US to manage to first prevent Russia aggression, and then even worse , prolonging the conflict for several years by simply failing to provide what was needed to defeat Russia while providing just enough for the Russians to advance only very slowly and at a high cost - the worst possible outcome since Ukraine still loses a huge amount of territory and more importantly, people, while Russia loses a much smaller proportion of its population while achieving many of its goals and proving to the West that it can challenge its political position near its borders even if war is the only way to do so.