I think the general concensus in the security community is that Google Pixel phones with GrapheneOS are the most secure, and the only ones that not even authorities can reliably break into. But Google Pixel running stock OS, as well as iPhones are very competitive and secure as well, so holding the second place. And then Samsung holds the third place, as being the only other phone producer that takes security very seriously.
If one use any of those, and the phone is still within security support, one has made a very good choice from a security point of view.
From a privacy point of view, only GrapheneOS would be good out of those, being the only one to offer privacy against the mobile phone producer. They all offer good privacy against other actors though.
This is just what my impression of the general consensus is. I haven't compared these brands myself.