Just need to vent 😩😭😢

Today I had an interview for a great position. The problem was, I applied for X position. I previously had applied for another position, position Y, for the same organization but they had not contacted me about it and the name of position I received the interview request for was of X, not Y. Anyway, I prepared like crazy for the interview, detailing my work experience and skills and how they are in-line with what they’re looking for. I am 2 minutes into the interview, and they start asking me questions in regards to the older position I applied for. They tell me that I essentially applied for the same position twice, but they are hybrids. I was so upset after this. The job description for X & Y were completely different, and not even in the same playing field, so I find it odd that they are the same. Anyway, I am just venting because I have never been made to feel so stupid in my life. The whole interview I was clueless on how to answer the questions specific to Y position since I didn’t know that’s what they were seeking. This was around noon today and it’s still bothering me, because of how idiotic I feel. I hate being made feel this way, not that anyone enjoys it, but it really does a number on me. I know I won’t be letting it go for a few days as much as I am trying to LET IT GO.