Benoit Cosnefroy (Ag2R Citroën Team) took the Bretagne Classic after pipping world champion Julian Alaphilippe on the line.