Reference for Bekhorot 6:12
אֵלּוּ שֶׁאֵין שׁוֹחֲטִין עֲלֵיהֶן לֹא בַמִּקְדָּשׁ וְלֹא בַמְּדִינָה, חֲוַרְוָד וְהַמַּיִם שֶׁאֵינָם קְבוּעִין, וְחִטָּיו הַפְּנִימִיּוֹת שֶׁנִּפְגְּמוּ, (אֲבָל לֹא) שֶׁנֶּעֶקְרוּ, וּבַעַל גָּרָב, וּבַעַל יַבֶּלֶת, וּבַעַל חֲזָזִית, וְזָקֵן, וְחוֹלֶה, וּמְזֻהָם, וְשֶׁנֶּעֶבְדָה בוֹ עֲבֵרָה, וְשֶׁהֵמִית אֶת הָאָדָם (עַל פִּי עֵד אֶחָד אוֹ עַל פִּי הַבְּעָלִים), וְטֻמְטוּם, וְאַנְדְּרוֹגִינוֹס, לֹא בַמִּקְדָּשׁ וְלֹא בַמְּדִינָה. רַבִּי יִשְׁמָעֵאל אוֹמֵר, אֵין מוּם גָּדוֹל מִזֶּה. וַחֲכָמִים אוֹמְרִים, אֵינוֹ בְכוֹר, אֶלָּא נִגְזָז וְנֶעֱבָד:
For the following they do not slaughter - neither in the Temple nor outside the Temple: If it had non-persistent white spots in its eye, or non-persistent tearing or if its inner gums are missing a piece but not uprooted, or if it had eczema, a wart or boils or if it was old or sick or smelled bad, or if a sin [of bestiality] was committed with it or if it killed a man [as determined] by the word of one witness or by the owners admission, one of undetermined gender or a hermaphrodite, neither in the temple or outside it. Rabbi Yishmael says, there is no blemish greater than this [i.e. being a hermaphrodite] but the Sages say it is not a first born and can be sheared and worked.