From the ZFC axiom of regularity, which states that every non-empty set contains an element disjoint from it, we can deduce that there is no set $A$ such that $A \in A$.
A proof is outlined here:
Let $A$ be any set. Then $\{A\}$ is a set, and by regularity $\{A\}$ must contain an element disjoint from $\{A\}$. The only element of $\{A\}$ is $A$, so $A\cap\{A\}=\varnothing$, and it follows immediately that $A\notin A$.
I am trying to convince myself that there cannot exist distinct sets $A$ and $B$ such that $B \in A$ and $A \in B$ using the same axiom, but I am no expert in logic and wonder whether this is true, and how this can be deduced.
The main issue I see is we end with infinite recursion. Suppose $A = \{B,C\}$ and $B=\{A,D\} = \{ \{B,C\}, D \}$.
Do we arrive at a contradiction somehow, and is $B$ considered a member of $B$?

