I'm a mobile dev, so I have both an iPhone 13 Pro Max that I rarely use, and a Pixel 6 Pro that runs GrapheneOS, which is what I prefer. Diffr't strokes.
Actually it is a lot better in this regard. You can write and compile code on the device. You can compile apks on any other device and install it on the phone. You never have to go thru google, unlike in Iphone.