Oh, transistors are not one shape across nodes. Not anymore, and not for a long time. The planar version taught in beginning EE classes has evolved into various complicated 3D shapes.
Yeah I know, I was putting caveats all over the place because first order, things are simple, but there's lots of complication. But in reality density == performance, and transistors are mainly just interchangeable. Yes, you could theoretically get a less dense transistor with a fantastic slew rate or some such property, but it's very unlikely it'll matter in a conversation about digital logic.