Installing WordPress on the root vs. a sub directory

Good day. I am building my WordPress website on a dedicated managed hosting platform, with access to cPanel.

It will be a website with general information, as well as e-commerce features to allow a user to purchase access to premium content on the site.

I am at the point to decide if I want to install WordPress into the root directory or in a sub directory. I know WordPress will work with either option. Could you go into some details, advantages, and disadvantages about installing WordPress in the root directory or a website vs. a sub directory? Is one more secure than the other? Are organization and keeping the root "clean" significant reasons for choosing one over the other? Or is this truly just personal preference?

Thank you!