By/with and with/by, same thing but one was correct. How?

As-salamu 'alaykum.

The same option was given to me twice, I just clicked whichever, yet one was incorrect and the other was correct. Is it a bug or the order actually matters?

JazakAllahu Khayr.

Wa 'alaykum as-salam Azeezat. JazakAllahu khayran for reporting this! You’re right that both options appeared identical, and that shouldn’t happen. We’re working on improving the data behind these exercises to fix cases like this. Thank you again for flagging it for us.