Give three finite multisets $A,B,C$ I am trying to devise a sufficient condition that implies equality of both $A$ and $B$ with $C$. More formally, if $A,B,C$ are defined over a space $\Omega$, I am looking for a function $f : \Omega \times \Omega \to \Omega$ such that $$f(A,B) = C, \text{ implies that } A = C \text{ and } B = C.$$ Naturally, equality is as multisets.
The motivation for this question was noticing the basic observation that if $A\cup B \subseteq C$ as multisets, then $A \subseteq C$ and $B \subseteq C$ as multisets. I was wondering if something similar happens with the equality "$=$" operator instead of the subset "$\subseteq$" operator. In the subset example, the function $f$ is the union of multisets $\cup$ defined as $$f(A,B) = A \cup B := \{[x,\max\{m_A(x),m_B(x)\}] : x \in A \text{ or } x \in B\},$$ where $m_Z(x)$ counts the number of times that $x$ appears in some multiset $Z$.