In Decentralized exchanges Funds are more secure.Your funds always stay with you. I think that they are the future of all asset exchange.
In centralized exchange you've to transfer
your crypto to exchange if they get hacked
all users funds are gone.
You are right because till date decentralized exchanges offers the best type of fund security unlike centralized exchanges. But in both exchanges they have their differences and also why one is preferred over the other. Decentralized Exchanges, despite offering higher security still lacks speed which is seen in Centralized exchanges. Also, decentralized exchanges lacks good UI as compared to their counterpart. That is to say, speed and good UI are the reasons most prefer centralized exchanges.