From my studies, I remember that solar systems have some kind of identity card based on the % of atoms and isotopes (versions of an atom with more or less neutrons).
The bigger the atoms the more exceptionally energetic the process that created them needs to be: normal star, big star, supernova, neutron star merger... Also some specific isotopes can be created by some processes and not others. https://en.wikipedia.org/wiki/Nucleosynthesis
So one part of the universe where a solar system formed may not have seen the same atoms creation processes as another, so their detailed compositions are different.
Cosmo chemists analyze the compositions of meteorites that formed at different times to try to understand the history of our solar system. For exemple, they may find that this isotope could not have been produced by our sun's birth, and it must have come from a supernova or very specific kind of star. https://www.quantamagazine.org/what-crystals-older-than-the-sun-reveal-about-the-start-of-the-solar-system-20260302/
They make our origin much cooler by looking at space pebbles.