We prove that the degree-one vortex solution is the unique minimizer for the Ginzburg--Landau functional for gradient fields (that is, the Aviles--Giga model) in the unit ball BN in dimension N≥4 and with respect to its boundary value. A similar result is also proved for SN-valued maps in the theory of micromagnetics. Two methods are presented. The first method is an extension of the analogous technique previously used to treat the unconstrained Ginzburg--Landau functional in dimension N≥7. The second method uses a symmetrization procedure for gradient fields such that the L2-norm is invariant while the Lp-norm, 2<p<∞, and the H1-norm are lowered.