FOR YOU ARE LIKE PHARAOH (Genesis 44:18). He said to him: Just as Pharaoh is great here, and you are second to him, so my father is great in the land of Canaan, and I am second to him. He said: I swear, if I draw my sword from its scabbard, I begin with you, and with Pharaoh I finish, as it is said, "Iron sharpens iron" (Proverbs 27:17). It is fitting for the two of them to stand one against the other; it is fitting for a king who exalts himself against a king. Judah is a king, as it is written of him, "Judah prevailed above his brothers" (I Chronicles 5:2). Joseph is a king, as it is written of him, "And he made him ride in his second chariot" (Genesis 41:43). Therefore the two of them were goring one another. Therefore it is said, "in me, my lord" (Genesis 44:18).
Judah and Joseph as Two Kings Goring Each Other
Midrash Tanchuma Buber, Vayigash 6:3
כי כמוך כפרעה. א"ל כשם שפרעה גדול כאן, ואתה שני לו, כך אבא גדול בארץ כנען, ואני שני לו, אמר נשבע אני אם אשלף חרבי מתערה בך אני מתחיל, ובפרעה אני מסיים, שנאמר ברזל בברזל יחד (משלי כז יז), נאה לשניהם עומדין זה כנגד זה, נאה למלך מתגאה כנגד מלך, יהודה מלך, שכתיב בוא יהודה גבר באחיו (דה"א ה ב), יוסף מלך שכתיב בו וירכב אותו במרכבת המשנה אשר לו (בראשית מא מג), לפיכך היו שניהם מנגחין זה עם זה, לכך נאמר בי אדני.