From some information I got, hackers break into centralized exchanges more often than hardware wallets. The following exchanges have been hacked by hackers, namely Bitfinex (2016), Binance (2019), Kukoin (2020). So I prefer to store Bitcoin on a hardware wallet to be safer from hackers.