The Ukrainians cannot stop themselves from trying for victory in spit of the huge losses. The Ukrainians have succumbed to a Hitler bunker mentality.
I think that Zelensky understands what the rest of the world knows: now that Trump is on the scene, this war is ending soon. Zelensky wants to improve his position at the rapidly approaching peace talks. Thus, an attempt at proving that Ukraine has offensive relevance.