>Is a scan/photo of a government ID that much more reliable, though?

There is a DataMatrix barcode containing the same data plus a digital signature from the government. The Wikipedia page for this specific barcode happens to show the back of the French national ID card as its example:

https://fr.wikipedia.org/wiki/2D-Doc