In fact, you can lose your coins both on the exchange and in your wallet. Everywhere there are risks. But on the stock exchanges of course, these risks are largely independent of you personally. So for trading and short-term investments, of course crypto exchange, for HODL wallet and better cold, hardware or even paper