Well i dont completely agree though, its true the Armenians had defending position in difficult terrain but their supplies were pretty much depleted, moral lost and Azerbaijan had air superiority.
I'd say it was Armenians who were lucky that Russia stepped in to save them, they were on the verge...