The elephant in the room is that the general public has no clue about graphics rendering and is not able to appreciate what huge uplifts Lumen and Nanite bring to the graphics. We literally have movie like assets now, every pebble in 3D at high poly counts and dynamic lighting that looks like reality. Yet people still compare that to last gen games like Ghost of Tatsushima and Cyberpunk like they would come even close to what UE5 renders on screen. According to the average joe, Cyberpunk is optimized, UE5 is not simply because UE5 renders at a much lower resolution and framerate . They fail to see UE5 games have much more sophisticated lighting (excluding path tracing on PC of course) and MUCH higher polycon count everywhere. Look at any ground in Cyberpunk and you will see a flat plane, in UE5 games there's a ton of depth and micro detail that even casts shadows.
UE5 is not unoptimized, it is just doing a lot more than last gen games which were programmed with PS4 in mind. That's not to say the engine is without quirks, of course and there are some significant issues, but still it is incredible what UE5 renders on screen. And of course that will come with a huge performance and resolution penalty, especially on consoles, but that is the price you pay for progression.