When I couldn't distinguish two object clearly I would say:
- "I got muddled A up with B." or
- "I muddled A up with B."
I found similar expression in this question, and it seems both expression are correct. But I'm not sure which expression sounds more natural.