Damayantī entered the svayaṃvara expecting to choose one man.
She found five of him.
The problem had begun before the ceremony.
Damayantī, princess of Vidarbha, had heard of Nala, king of Niṣadha. Nala had heard of her. In the Mahābhārata's tale, swans carry messages between them until each knows the other's name and desire.
By the time Damayantī's father announced her svayaṃvara, she had already decided whom she wished to choose.
Kings came from many places.
So did gods.
On the way, Indra and other guardians of the worlds met Nala and gave him an impossible assignment for a man travelling to the same ceremony as a suitor.
Go to Damayantī and ask her to choose one of us.
Nala protested, but he had accepted their command. Through divine aid he reached Damayantī's guarded apartments and delivered their proposal.
He did not quietly change the message to improve his own chances.
Damayantī answered that she had already chosen Nala.
Nala reminded her that he stood there as the gods' messenger and urged her to consider them.
Damayantī found a way that did not require him to betray the task he had accepted.
Let the gods come to the svayaṃvara with you, she said. I will choose you openly in their presence.
Nala returned and reported her answer.
At the appointed ceremony the hall filled with kings. Damayantī entered carrying the choice she had already made.
Then she saw five figures with Nala's appearance.
Four gods had taken his form.
Face and body were no help. She could not simply point to the one who looked like Nala, because every one of them did.
Damayantī did not guess.
She folded her hands and appealed to the gods themselves. From the time she had heard the swans, she said, she had chosen Nala truthfully. She asked them to reveal enough of themselves that she could keep that choice without accidentally garlanding someone else.
The distinctions became visible.
The gods were untouched by perspiration. Their eyes did not blink. Their garlands remained fresh. Dust did not cling to them. Their feet did not rest on the earth, and they cast no ordinary shadow.
The mortal Nala looked mortal.
He had a shadow. His garland showed fading. Dust and sweat marked his body. His feet touched the ground and his eyelids moved.
Damayantī recognized him.
She caught the edge of his garment and placed the marriage garland around his neck.
The assembled kings cried out in disappointment. The gods and sages praised the choice.
The gods did not punish Nala for being chosen over them. The episode continues with blessings given to him before they depart.
The scene is often remembered because of the five identical Nalas, but the harder decision happened earlier.
Damayantī is not making a beauty contest out of five faces. She is trying to remain truthful to a commitment already made when appearances have been deliberately made unreliable.
Nala has his own version of the same test. Desire would make dishonesty convenient, but he carries the gods' message faithfully even though it works against him.
Their choices meet in the hall: one person refuses to alter a message; the other refuses to let confusion alter a decision.
Damayantī, for her part, does not insult the gods when Nala presents their proposal. She bows to them in her answer and still states that Nala is the one she has chosen. Her plan for the public ceremony is a way to keep that truth without asking Nala to break faith with the messengers who sent him.
After the garland is placed, the gods openly accept what has happened. They praise Nala and grant him boons before departing. The scene therefore ends neither in divine punishment nor in a secret escape. Damayantī makes her human choice in the gods' presence, and the gods allow it to stand.
Damayantī asks the gods not to choose for her, but to let truth become visible enough for her to choose as she already meant to.