を間違えた

got the wrong one; chose incorrectly, mistook one thing or person for another

→ を
phrase Common #7,354
got the wrong one; chose incorrectly Used after the thing that was mistaken or chosen incorrectly.
JA: トムは乗る電車を間違えた。
EN: Tom got on the wrong train.

私、計算を間違えたみたい。

It looks like I made a mistake in my calculations.

アンタ駅を間違えたようだぜ。

Looks like you got off at the wrong station.

彼女はバスを間違えたにちがいない。

She must have taken the wrong bus.

選択を間違えたな

You made the wrong choice.

— ダンガル きっと、つよくなる (2016)

乗る列車を間違えたらしい。

It looks like I got on the wrong train.

職業を間違えた

I got the wrong occupation.

— フォーリング・ダウン (1993)

彼女は場所を間違えたんだお互い違うカリフォルニアにいた

She had the wrong location—we were each in a different California.

— 恋する惑星 (1994)

トムは乗る電車を間違えた。

Tom got on the wrong train.

phrase Rare #28,828
mistook one thing or person for another Often used in the pattern AとBを間違える, meaning “to mistake A for B” or “to confuse A and B.”
JA: 先生は私と兄を間違えたらしい。
EN: The teacher apparently mistook me for my older brother.

先生は私と兄を間違えたらしい。

It seems the teacher mistook me for my older brother.

ケンは、わたしとあなたを間違えた。

Ken got you and me mixed up.

彼は不注意にも列車を間違えた。

He carelessly got on the wrong train.

彼は私と私の妹を間違えたようだ。

He seems to have mistaken me for my sister.

子供を間違えた

I got the wrong child.

— High and Low (1963)

あなたと君の兄弟を間違えた。

I confused you with your brother.