XML result of modeler.importXML is non-deterministic

Hi, i am currently facing the issue, that the Collaboration part of the xml seems to be non deterministic. This is a problem in our react enviroment because we want to handle any dirty states (changed fields like the xml of our process).
If the user refreshes the site the same xml gets imported again and the result of this import, the xml string, is different.

This can be reproduced simply by create a diagram in https://demo.bpmn.io/new, exporting the diagram and importing it again. Exporting the seemingly same model again leads to a different xml in many cases.

The topic was already discuessed in BPMN JS Modeler Jumbles the Order of elements in the Initially Loaded XML after rendering the diagram sadly without result.

I tried to look into moddle-xml already. What i do not understand is, that only the collaboration part seems to be non-deterministic. Therefore this has to be possible?

Any help would be appreciated!

Could you share the most simple diagram that you can reproduce this with? Happy to have a look what is wrong there.