This is one of many silly sentences I heard while growing up, mainly from other Swedish kids who were learning English and finding silly similarities in words. So it's definitely deliberate.
To an Aussie bogan like me I'd pronounce the two the same usually, I have to think of the difference as how an American says glass vs how an Englishman/Aussie might say glass
I haven't had the balls to try speaking Swedish yet so haven't asked to eat some glass yet