Sony phones do not have all the newest fancy features, but I found the flagships to be reasonably powerful and just work™.
I never liked Samsungs because they modify the default Android experience too much and ship too much crapware. Since ~Android 6 they are more aligned UI-wise, but the "back" button on the right, and the different middle button are also annoying. Last but not least, being an Android dev, Samsung is one of the most annoying vendors, which makes weird modifications to their fork of Android, which result in Samsung-only crashes.
(Having said that, for majority of consumers, none of this is an issue, given the sales numbers.)