My iPhone 4 got stolen in 2012 so I tried out the Samsung Galaxy s3 when it came out. I decided it was something new, looks great, big screen, etc. The first couple of weeks of having it was awesome, but sure enough the phone started to run into problems. I never rooted it or downloaded shady apps/software. Sent it to the factory twice, one time it just literally died in what they called a "software kill".
I got a refurbished one and that was no better. That is when I ordered the new iPhone 6+ and when I got it it was a breath of fresh air. Never had problems until now with the worn battery (its about %50 health now, which I guess is normal for my usage). Oops, one other problem was the camera was shaky and blurry a few months ago, took it to an apple store and they replaced the camera FOR FREE w/ no apple care.
I did too much research comparing the Samsung Galaxy s8 to the iPhone X. I went into a lot of stores to compare the two, watched youtube videos, and checked out reddit. I was very close to trying the s8 and believe that they probably have sorted out the issues from the s3 long ago.
However in the end, I use a MacBook, my family has iPhones so FaceTime and airdrop is nice, and the build quality is great. I need something that just works and apple to me has proven that. For now I will enjoy the X until I am ready to upgrade or jump ship to android.