Allegri: 'Ajax defeat good for Milan'