Ventura docs for M2 Macs in this comment: https://gist.github.com/henrik242/65d26a7deca30bdb9828e183809690bd?permalink_comment_id=4555340#gistcomment-4555340
Old Monterey docs in this old revision: https://gist.github.com/henrik242/65d26a7deca30bdb9828e183809690bd/32c410e3a1de73539c76fa13ea5486569c4e0c5d
Solution for Sonoma: https://gist.github.com/sghiassy/a3927405cf4ffe81242f4ecb01c382ac
The MDM data is permanently wiped each time. It's just the enrollment being enforced also each time the system is installed :) Thus, the practical answer is "NO" unless you are able to request Mac Serial removal from MDM admin of concern. You might also want to hack Apple :) Btw, that's not something impossible per-se (and been shown e.g. a guy one day posted the very trivial way of wiping CloudKit data of other users), but I guess they hire the best of the best to secure their mission critical services.
There is a way of spoofing Mac Serial with
OpenCore
+ someLilu
plugin. And that's crucial for some Hackintoshes to work on older Intel platforms. Would work with minimal effort, on Intel Mac, but that's not the state for sale, I would say :) Unless you would want doing custom installation media with appropriate patches; practically it provides very limited advantages over/etc/hosts
method. But if a buyer would be comfortable with performing the steps you would have documented, why not :)If really interested, look into what Dortania guys do in their OCLP.
It might also work on M1/M2 in theory, but due to different device trees, it's likely Lilu and related plugin won't work OOB and would need patching. Then you'd need to ensure it's buildable for Apple Silicon, and finally rebuild kernelcache / setting it as custom boot object, in permissive security mode).
That's solely for fun. Anti-sale variant :)