Spiritual victory as humiliation-reversal mechanism
When Ah Q is beaten, he reframes the defeat in his head ("it's as if I were beaten by my son") or even slaps his own face, then imagines he was the one who struck the blow, and walks away feeling he has won. The imagined win removes the pain of losing, so nothing about his situation ever changes. Self-deception here works as a painkiller that also blocks any correction.