Analysis: Israel, Hamas race to claim victory before truce