What's the difference between a iphone and a samsung?

What are the main difference between them besides camera quality or battery but how it works like messaging, app stores, etc?

Added (1). iphone 10 and samsung 10 specifically

The BIGGEST difference is Apple iPhone runs iOS and Samsung smartphones run Android.

Money.

The OS, iPhones using iOS & Samsung phones using Android so with that comes the different app stores. App Store & Google Play respectively.