phrasal
or which was which
: what is or was the distinct and especially nameable identity of each member of a group — used as a direct or indirect question
those two fellows are the Jones brothers, John and William, but which is which
so many kings of France named Louis that I can hardly remember which was which