AOSP is open source. Cool. In order to make AOSP useful to 99% of the population you need Google Play Services, which aren’t open source. To get Google Play Services you need to agree to install 20+ non-removable Google apps, none of which are open source.