These are not equivalent. Restricting access to a casino just requires showing an ID to a person. A few seconds later and that person has completely forgotten everything about you. They will not keep a record of your home address, etc. Perfectly privacy preserving. You have no such guarantee when you upload government IDs to a server.
I don't think anyone here minds restricting access, but that doesn't require completely destroying ownership rights over our own devices nor internet and device privacy.
All that really needs to be done is for servers to publish what type of content they show from a parental perspective in a machine-readable format and for devices to have parental controls that only allow access to servers that publish such info and which content is allowed by the parental settings.
This should be even more effective than solutions requiring uploading IDs since there's still going to be servers out there in other jurisdictions that simply don't care for such things.