Structural generalization in COGS: Supertagging is (almost) all you need