pjabbott wrote:
And I can’t believe Apple would have two different hardware variants of the same spec machine.
It is possible to custom-configure a new 24" two-Thunderbolt/USB4-port M4 iMac with an Ethernet port. But as steve626 pointed out:
Take a tour of iMac - Apple Support
"The 24-inch iMac comes with a 143W power adapter. If your iMac has four ports, the included power adapter has built-in Ethernet. The 24-inch iMac with two ports can be configured with a 143W power adapter with or without built-in Ethernet only at the time of purchase and cannot be added later.
Note: In order to add Ethernet capabilities on the 24-inch iMac with two ports after purchase, you must use a USB-C to Ethernet adapter (sold separately)."
That implies that there are different variants of the "same spec" machine. (If by "same" you are referring to specs other than the ones surrounding the power brick and the Gigabit Ethernet port.)
I remember that back in the Intel-based iMac days, there were some 21.5" iMacs which only came with a place to plug in a blade SSD if you ordered them with a SSD or a Fusion Drive. Order one of them with a mechanical hard drive, and Apple would save a few cents by leaving off the connector for plugging in a blade SSD. Later, when OWC came out with compatible blade SSDs, those who had originally purchased mechanical hard drives got the nice "surprise" of learning that they could install an internal SATA SSD, but could not install a faster internal blade SSD.
You bought a "price point" iMac. To get the lower price, you gave up 2 CPU cores, 2 GPU cores, 2 multi-purpose USB4/Thunderbolt ports, the ability to drive a second external display, a Touch ID sensor, and Gigabit Ethernet as a standard feature. Maybe another one of the "price point" measures was that if you did not grab the opportunity to custom-order a two-port iMac with the "Ethernet power brick", they left some small part out at the factory that the "Ethernet power brick" would need to connect to – much like with that old 21.5" iMac blade SSD socket.