I live in a very hard water area.
Washing machine overflowed recently; during pumping out, water overflowed the open pipe leading to the U bend. So I hooked the pipe from the machine into a nearby sink which nearly filled but did drain away slowly.
This sink and a basin discharge via U bends...