Another interpretation (of Ecclesiastes 7:1): "A good name is better than good oil." The names of Hananiah, Mishael, and Azariah are better than the good oil with which Nadab and Abihu were anointed. Why? The sons of Aaron entered to offer up an offering and were burned; Hananiah, Mishael, and Azariah were cast into the midst of the fiery furnace and were saved. Hence, "a good name is better."
A Good Name Above Anointing Oil for the Three in the Furnace
Midrash Tanchuma Buber, Vayakhel 1:4
ד"א טוב שם משמן טוב שמותן של חנניה מישאל ועזריה, משמן הטוב שנמשחו נדב ואביהוא, למה בני ארן נכנסו להקריב ונשרפו, חנניה מישאל ועזריה הושלכו לתוך כבשן האש וניצולו, הוי טוב שם.