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.
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.
People criticize CEX because it requires KYC, which makes them lose their privacy, other than that I don't see any other reason. The exchange should only be used for exchange and anyone using it to store assets is stupid because that is not its mission.