Ridiculous. People are complaining just as much about the new Google Pixel 6 phones and they have complained about Samsung phones for the last several generations as well. There are no higher-end phones which in the right conditions don't capture lens flare. NONE.
If you're not happy with the camera system on your iPhone, sell it or if within the return window return it and get something else you think better meets your needs.
Complaining here about something normal, expected and in many situations is unavoidable is a waste of time. Apple isn't here. They aren't reading these posts. You are just speaking with other users, none of whom can do anything for you except to explain lens flare is normal.