Quicksand and anxiety are similar in that both are unpleasant situations from which one struggles to escape. In the case of anxiety, the struggle is psychological. In the case of quicksand, the struggle is physical.
Struggling with anxiety is like struggling in quicksand.