The characteristics may be the same, but the iPhone will shoot better. This is first, and second, support for iPhone 11 will extend for 5 years, and Nokia will stop updating in a year. If you need a good camera, buy an iPhone.
Why spend so much on a smartphone? I would have used the Galaxy S8 for another year and bought a Galaxy S10 for example or a Galaxy Note 10, but for now they are too expensive.
Do not try to buy a Galaxy A71, especially a Galaxy A51, but the Galaxy S9 for such money is a good option, but there is one condition – it must work on the Snapdragon processor. Huawei is good, the camera is great.
I wouldn't even consider the iPhone X, since it has an OLED display that negatively affects your health. The IPS screen in the iPhone XR is better and larger, which makes it easier to use the phone.