Bitcoin provides a fairly high level of security if we use it well, so in my opinion if you want to store bitcoins for a long time then it's better to use a hardware wallet, because basically hackers always target online wallet users because they can hack more easily.