A mix of both is nice, but only if the CEX is reputable. I really appreciate a DEX that uses an intermediary wallet like a MEW or Scatter. This prevents the exchange from holding anyones money or from owning anyone's private keys. This also disables hackers from having a big- exchange cold wallet to hack from.