Ukraine are fighting for their survival. You can't put someone's back to the wall and expect them to make the most moral, clear-headed, rational decisions.
What they have right now is Western armaments and funding. What they don't have is an inexhaustible supply of manpower. And their enemy has a much bigger supply of manpower than they do. Developing more and better autonomous weapon systems is the most rational choice in the horrendous situation they've been placed in.
The ultimate moral responsibility here is not with Ukraine. If the world had taken Russia seriously as a threat when they took Crimea, if we had moved to provide serious and meaningful security guarantees to Ukraine and apply meaningful, effective punishments to Russia (like dumping their oil and gas, as we finally, begrudgingly started to do in 2022), none of this would have happened. Instead we threw them to the wolves, and now you're here wagging your finger at them for defending themselves any way they can.