Both solutions have their merits and demerits.
Decentralized exchanges dont have an intermediary to hold users funds and are deemed more secure because they run on distributed nodes, ensuring that they are immune to hacks. Other benefits of this platform are anonymity and no trading fees.
On the other hand, Centralized exchanges have high liquidity and trading volumes, and offer better UI/UX. User accounts in CEX are insured, which means that the user will get their funds back in case of mishaps. It also allows users to exchange fiat currency for cryptocurrency and vice-versa.
These are some of the merits of CEX and DEX. It is completely up to you to choose the better solution for your
online coin trading.