There is in fact a solution which uses your idea: that some suit will be repeated twice.
Say that among the $13$ ranks within a suit, ordered $A, 2, 3, 4, 5, 6, 7, 8, 9, 10, J, Q, K$, each rank "beats" the next six ranks, wrapping around when we get to the end. For example, $A$ beats $2,3,4,5,6,7$, and $10$ beats $J, Q, K, A, 2, 3$.
If you have two cards of the same suit, exactly one of them beats the other one. So you should pass, in order:
- A card of the same suit as the missing card, which beats the missing card. This leaves six possibilities for the missing card.
- The remaining three cards, in an order that encodes which of the six possibilities it is.
For the second step, we should order all $52$ cards in the deck somehow; for instance, say that $\clubsuit < \diamondsuit < \heartsuit < \spadesuit$ and $A < 2 < 3 < \dots < Q < K$. Then the order of the last three cards is one of "Low, Middle, High", "Low, High, Middle", and so on through "High, Middle, Low". Just remember some correspondence between these six possibilities and the values $+1, +2, +3, +4, +5, +6$, and add the value you get to the rank of the first card (wrapping around from $K$ to $A$ of the same suit).
For example, say that the correspondence we chose in the second step is
\begin{array}{ccc|c}
\text{Low} & \text{Middle} & \text{High} &+1 \\
\text{Low} & \text{High} & \text{Middle} &+2 \\
\text{Middle} & \text{Low} & \text{High} &+3 \\
\text{Middle} & \text{High} & \text{Low} &+4 \\
\text{High} & \text{Low} & \text{Middle} &+5 \\
\text{High} & \text{Middle} & \text{Low} &+6
\end{array}
and you draw the cards $\{4\clubsuit, 5\spadesuit, 5\diamondsuit, A\clubsuit, J\spadesuit\}$.
- We have two possibilities for the repeated suit, so let's choose $\spadesuit$.
- In the cyclic order in that suit, $5\spadesuit$ beats $J\spadesuit$, so the first card we pass is $5\spadesuit$.
- We want to encode the offset $+6$, which is the ordering High, Middle, Low.
- So we pass that ordering: after $5\spadesuit$ we pass $5\diamondsuit, 4\clubsuit, A\clubsuit$ in that order, because $5\diamondsuit > 4\clubsuit > A\clubsuit$.