From the Ukrainian point of view, losing Bakhmut is a defeat, not a major defeat. For Russia advancing beyond is going to be just as hard as taking Bakhmut. Russia through Wagner is trading the lives of conscripts for a few meters per day. Ukraine is trading those meters per day for time to train soldiers and get more and better equipment. Long term, that favors Ukraine, not Russia.