Yes, but what if I already have a charger and I don't know where it came from?
https://www.electricalsafetyfirst.org.uk/blog/how-to-spot-a-...
Of course, it's probably not beyond them to add some weight to make you believe it is real.
I guess if you have the right tools, you could also measure output quality.
This article shows how to tell between an authentic A1265 and at least one fake one: https://www.righto.com/2012/10/a-dozen-usb-chargers-in-lab-a...