We shouldn't replicate that in technological solutions.
ID is for "who you are", which doesn't matter for the types of things we use for age checks (bars, etc.)
There should be a way to verify your age without showing ID.
Sure, ID can do that. It is sufficient, but it should not be necessary.