This comparison is close to my heart for I’m about to renew my phone this year.
In 2017, I passed up on the iPhone 8/8 Plus/X and went for the Samsung Galaxy Note 8 instead, primarily because of the price. Never regretted it. The Android of recent years is leaps ahead of its predecessors of the early 2010’s. Gone are the days of overheating Samsung Galaxy S2.