For the record, you can write a build postprocessor to delete the duplicate. Implement IPostGenerateGradleAndroidProject in an editor file, and Directory.Delete(Path.Combine(path, @"../UnityDataAssetPack/src/main/assets/bin/Data/UnitySubsystems"), true);.
If you also do non-AAB builds best check the path exists first.
That issue is marked as non-reproducible. It’s reproducible 100% of the time here, but the repro steps are wrong there. Split Application Binary must be on for Unity to create the UnityDataAssetPack. My actual determination on whether a build has succeeded or not is different too, we don’t do build and run, builds succeed every time, what fails is processing of the build when uploading the AAB to the Play Store (which is presumably the same process).
Guys, for this or almost similar cases (in which problem with the different file direction) I advice you just to delete Library folder from Unity project, then start your project from Unity hub. Unity will rewrite its Library without any problems, and this problem will go away. It helped me to solve this. I always do the Library rewrite in such weird cases. Hope my advice will help other people! But remember, if your project is quite large (>40Gb), then it can take really a lot of time. Rewrite of Library takes 1-1.5 hours (but obviously it also depends from your`s PC capacity), switching adain to Android takes 1 hour, first build after that can be up to 1-2 hours.