Until Direct X games work on macos, it is not collaborative, it is a walled garden. Until all PS5 games work on Xbox X I can't collaborate in multiplayer, the reverse is true as well.
Many games support cross-platform play these days, so yes you certainly can collaborate between PS5 and Xbox X, if you choose the correct 'applications'.
Walled gardens exist throughout computing.