Sort of but
1. You can still have an OS without an Apple ID, it just sucks
2. When you buy an Apple device, you did the research and know “the deal”. Microsoft doesn’t market devices that way, they want to work on every device and control it at the software level.
3. I trust Apple more, they are somewhat regularly in trouble for not giving out the keys to my data. When’s the last time Microsoft fought the FBI for access to a surface device ?