ARM M0 cores at 9 cents have unique IDs burned into flash OTP typically in my experience.
https://www.analog.com/media/en/technical-documentation/data...
1-Wire, unique 48-bit ID. I don't remember the year it was introduced, or cost.
IIRC, their 1-wire temp sensors also have that (at least they did about 10 years ago when I was messing around with hobbyist electronics):