In vivo topology converts competition for cell-matrix adhesion into directional migration