Both DEX and CEX have their own advantages and disadvantages but in general CEX still prevails because of the services it provides more complete and convenient than DEX. DEX is just the right place for those who love privacy and value security, the rest are traders, simple, easy, like cheap fees… and don't value privacy, CEX is the one place for you. In terms of liquidity, CEX is obviously a lot bigger than DEX, so if judged fairly, CEX is dominating most of the market and 90% of investors are using CEX instead of DEX.
Both CEX and DEX has good and bad side you are right on that but CEX which centralized exchange has more disadvantages than the DEX decentralized exchange.
And in line with what the OP meant which was about how secured it is then it has to be Decentralized exchange, it's more secured than the centralized exchange because it does not require KYC (know your customer) a way centralized exchange usesntheir customers details for verification, this can lead to your identity being exposed.