The death star was shielded and armored against big ships, like capital ships (and maybe a Borg cube). It was defeated because they didn't bother with countermeasures against a small one-man fighter exploiting an Achilles' heel that only the rebellion knew about.