On the nonconvexity of some push-forward constraints and its consequences in machine learning