Gershom Bar Razah wrote:
I knew about Rashi's comment but Rashi contradicts the Talmud. Is the talmudic passage aggadic? for me it looks halachic.
Rashi would never contradict the Talmud, but he always strove to explain the clear meaning of the words. What you have quoted seems definitely aggadic.