Mi konfuzis ŝin kun ŝia fratino.

English Translation

I took her for her sister.

I would say “I confused her with her sister.”