This bit is confusing. See the pseudo-yaml below for what I hope clarifies this situation.
#cloud-config
<cloud-init stuff affecting the install environment>
autoinstall:
<autoinstall stuff affecting the target system>
user-data:
<cloud-init stuff affecting the target system>