Filter out bubbles with identical branches