I get your point. Ut using that logic, can we also say China lost the war against Vietnam in 1979?
Since China's objective was to prevent Vietnam from fully occupying Cambodia(one of China's closest ally in the region back then) and pulling their forces from the country and teach Vietnam a lesson. Yet none of that happened and China also had to pull out with severe losses.
I think it also depends on what we define as a loss. Not sure those are losses per se
Even though the Chinese Army suffered more combat losses, the Chinese Army did break through, and the road to Hanoi was wide open.
The Chinese Army could have made it to Hanoi, if they had chosen to. But remember the objective was never to conquer Vietnam.
At that point, the Vietnamese panicked and airlifted elite troops from Cambodia to face the Chinese Army.
Note that during this time, the Vietnamese were screaming for help from their Soviet "alliance", but the Soviets were unwilling and unable to help much.
The point being made, the Chinese (mostly) withdrew.
But for the following 10 years, the Chinese Army still occupied part of Vietnam's territory and would rotate Army units in for live-combat training against the Vietnamese Army.
So the Vietnamese learned the lesson that they couldn't rely on the Soviets.
China moved firmly into the anti-Soviet camp and a quasi-alliance with the US and the rest of the "West"
Economic benefits followed.
The Vietnamese were forced to maintain a huge standing army to at least try and match the Chinese Army
It meant Vietnam was even more militarised than the Soviets, never mind the Chinese.
Yet the Chinese Army never really worried too much about the Vietnamese Army and only deployed a modest force on the Vietnamese border, because everyone knew that statistically, Vietnam was comparable to one of the smaller and poorer Chinese provinces.
Vietnamese was forced into economic isolation and a cold war arms race with China, which it lost.
So you could argue that it was a strategic success for China.
It was always supposed to be a short victorious war, but the big issue is that the Chinese Army suffered heavier casualties than expected.