(22) As the days on which the Jews rested from their enemies, and the month which was turned to them from sorrow to joy, and from mourning to holiday: that they should make them days of feasting/drinking and joy, and of sending choice portions to one another, and gifts to the poor.
אָמַר רָבָא: מִיחַיַּיב אִינִישׁ לְבַסּוֹמֵי בְּפוּרַיָּא עַד דְּלָא יָדַע בֵּין אָרוּר הָמָן לְבָרוּךְ מָרְדֳּכַי.
Rava said: A person is obligated to become intoxicated with wine on Purim until he is so intoxicated that he does not know how to distinguish between cursed is Haman and blessed is Mordechai.
The Gemara relates that Rabba and Rabbi Zeira prepared a Purim feast with each other, and they became intoxicated to the point that Rabba arose and slaughtered Rabbi Zeira. The next day, when he became sober and realized what he had done, Rabba asked God for mercy, and revived him. The next year, Rabba said to Rabbi Zeira: Let the Master come and let us prepare the Purim feast with each other. He said to him: Miracles do not happen each and every hour, and I do not want to undergo that experience again.
(יד) מיחייב אינש לבסומי בפוריא עד דלא ידע בין ברוך מרדכי לארור המן. דאמרינן בגמ' דמיחייב למימר ברוך מרדכי ארור המן ברוכה אסתר ארורה זרש [גם] חרבונה זכור לטוב ומיחייב לבסומי עד דלא ידע מאי קאמר וכתב רבינו אפרים ז"ל מההוא עובדא דקם רבה ושחטיה לר' זירא כדאי' בגמ' אידחי ליה מימרא דרבא ולא שפיר דמי למעבד הכי:
(14) A person is chayav to get drunk on Purim עד דלא ידע בין ברוך מרדכי לארור המן. Rabbeinu Efraim z''l writes: From the contradictory story about how Rabba got up and killed R' Zeira, as there is in the Gemara, the Gemara is being docheh the memrah of Rabba, and the halacha is not like him, and it is not good to do this (and get drunk).
ראבי׳׳א, מגילה ז:
ונ׳׳ל דזהו למצוה בעלמא ולא לעיכובא.
Ravya, Megillah daf 7b
And it seems to me that it is not a mandatory mitzvah.
ביאור הלכה, םטה
עד דלא ידע וכו'. ... אין אנו מצוין להשתכר ולהפחית עצמינו מתוך השמחה שלא נצטוינו על שמחה של הוללות ושל שטות, אלא בשמחה של תענוג שיגיע מתוכה לאהבת השם יתברך והודאה על הנסים שעשה לנו.
Be'ur Halacha, 695
"He will not be aware [of the difference]." We should not become drunk and demean ourselves by rejoicing. We are not commanded to rejoice for the sake of debauchery and stupidity, rather we should rejoice with a delight that leads us to love G-d and acknowledge the miracles wrought for us.
Similarly, R' Elyashiv paskens like this in Toras HaMoadim Seif Katan Chaf Vav.
"The Jewish response to trauma is counterintuitive and extraordinary. You defeat fear by joy. You conquer terror by collective celebration. You prepare a festive meal, invite guests, give gifts to friends... Precisely because the threat was so serious, you refuse to be serious – and in that refusal you are doing something very serious indeed. You are denying your enemies a victory. You are declaring that you will not be intimidated. As the date of the scheduled destruction approaches, you surround yourself with the single most effective antidote to fear: joy in life itself."
"Sure, drinking will make an appearance at the feasts, but the ethos is less bartending than brotherhood."