I just noticed that my ships are gaining experience from killing enemy ships only equipped with defenses. This shouldn't happen, after all, even if a ship has 2000 defenses and 100000 hit points, as long as it has no offensive capabilities, it will always get destroyed by my 2 beam ship. It's just like attacking completely unarmed ships in that respect.