From a profit margin perspective they are wildly different. Amazon profits are mostly just AWS. Microsoft is, I think, driven by their enterprise software. Apple is, I think, more hardware and App Store.
We shouldn’t expect them to have similar margins.