Another interpretation: He compared the firstborn of man to the firstborn of beast, and the firstborn of beast to the firstborn of man. Just as with the firstborn of a beast, stillbirths exempt it from the law of the firstborn [a prior non-viable birth means the next is not counted as firstborn], so too with the firstborn of man, stillbirths exempt from the firstborn status. Just as a firstborn of man you are permitted to give to the priest in any place you wish, so too a firstborn of beast you are permitted to give to the priest in any place you wish.
Comparing the Firstborn of Man and Beast in the Law
Yalkut Shimoni on Torah 214:2
דָּבָר אַחֵר, הִקִּישׁ בְּכוֹר אָדָם לִבְכוֹר בְּהֵמָה וּבְכוֹר בְּהֵמָה לִבְכוֹר אָדָם, מַה בְּכוֹר בְּהֵמָה הַנְּפָלִים פּוֹטְרִים בָּהּ מִן הַבְּכוֹרָה, אַף בְּכוֹר אָדָם הַנְּפָלִים פּוֹטְרִים הַבְּכוֹרָה, מַה בְּכוֹר אָדָם אַתָּה רַשַּׁאי לִתְּנוֹ לַכֹּהֵן בְּכָל מָקוֹם שֶׁיִּרְצֶה אַף בְּכוֹר בְּהֵמָה אַתָּה רַשַּׁאי לִתְּנוֹ לַכֹּהֵן בְּכָל מָקוֹם שֶׁיִּרְצֶה.