What do you mean? Most if not all Apple's software is not even the best in their own category, let alone "in the non-free software world compared to Google's or Microsoft's". If we look at only these three and leave other competitors, you want to tell us that Safari is better than Chrome (Edge is the same now), Pages is better than Docs and Word, Numbers is better than Sheets and Excel, Keynote is better than Slides (arguably) or PowerPoint, Mail is better than Gmail or Outlook, iCloud better than Google Drive or OneDrive (ok lol), Facetime better than Meet or Teams, Apple Maps better than Google Maps or Bing Maps, Siri better than Google Assistant or Copilot... ?
Outside the two.. Fina Cut better than Premiere Pro or Resolve or Avid, Logic Pro better than Pro Tools or Ableton or many others, Motion better than After Effects, Pixelmator better than anything from Adobe or Affinity..
Come on, my dude. Only thing I haven't mentioned is OS only because that's a religion and I don't fall into MacOS one.
Apple's hardware game is strong. Software isn't, never has been.