> But in the end, the code it produces works, so who cares?
I care, precisely because the code it produces doesn't work. It has the appearance of working, but it is badly written and leads to problems down the line.