Allegri: 'Defeat healthy for Milan'