We consider the following question arising in the theory of differential inclusions: given an elliptic set Γ and a Sobolev map u whose gradient lies in the quasiconformal envelope of Γ and touches Γ on a set of positive measure, must u be affine? We answer this question positively for a suitable notion of ellipticity, which for instance encompasses the case where Γ⊂R2×2 is an elliptic, smooth, closed curve. More precisely, we prove that the distance of Du to Γ satisfies the strong unique continuation property. As a by-product, we obtain new results for nonlinear Beltrami equations and recover known results for the reduced Beltrami equation and the Monge--Ampère equation: concerning the latter, we obtain a new proof of the W2,1+ε-regularity for two-dimensional solutions.