The issue with samsung is that they stop official updates, usually after about 2 years. So you have no longevity. You will have the best phone on the planet during that time frame if you go for their flagship. If you want android I'd go as close to stock as possible where updates are kept longer. So the latest and greatest from google or one plus. Mid range, Motorola.
Apple on the other hand, support their phones and they are super smooth generally speaking. They are dear, but when you buy from them you know you are getting 5 years out of it with no performance drop.
I am proper tech head so I have both platforms. My daily drive is the galaxy s10 plus, but I also have an iphone 7 plus purely for the ecosystem and that phone still works like a dream despite being 4 years old. It's getting ios13 as well before they pull support so I know I'll get another year now.
Yep my apple iphone 6 now in its 5th is now not being updated by apple plus for this phone Ive already changed the battery twice myself its very easy to do. Think the cheaper android option is a good move if you have or get a sim only deal.