I just dug into this issue for the purpose of deciding whether D19 should take AP Literature or College English Dual Enrollment (taught at our high school with credit from the CC) for her senior year. What I figured out is that for our in state universities, getting a 4 or 5 on the AP means you only have to take one semester of freshman English composition (an accelerated honors version) versus the usual two semesters of freshman English composition. By contrast, if you take the DE class you get credit for two semesters of freshman English and have satisfied that requirement already. So IF you know you want to go in state and also want to be done with English ASAP, then the DE class makes more sense than the AP class.
But there’s no hard and fast rule or easy answer to AP vs DE because it really requires digging into the requirements of specific schools on specfic AP classes and also knowing whether that school would take your DE credit.