My info is a few years old, and may be out of date. However, at that time, the most selective colleges did not give credit for dual enrollment classes taken inside a high school. Almost all colleges accepted AP credit, but some limited the amount that could be used. At that time, the less selective colleges gave credit for a 3 out of 5, while the most selective colleges required a 4 or 5 for AP.
If the AP class allows the material to be covered over a full school year, vs. the dual enrollment class is for only 1/2 a year, the AP may be preferable.
I’d also ask older students about the quality of the teachers, if you are choosing between a DE and an AP class. In many high schools, the very best and most motivated teachers teach the AP classes. Depending upon the school, the Dual Enrollment classes might be taught by less experienced part-timers.
If the Dual Enrollment class is 2 hours long, it can make it hard to fit other desired courses into your schedule. Also, some young people may have trouble paying attention for 2 hours.