I think the CDSP is not a straightforward as Article 5 NATO, like many things EU related, its conditional:
"Decisions relating to the CSDP are taken by the Council of the European Union by unanimity. However, there are some exceptions like for instance when the Council adopts some decisions implementing an EU decision or for some decisions relating to the European Defence Agency (EDA) and permanent structured cooperation (PESCO), where decisions are taken by qualified majority voting."
Glossary of summaries - EUR-Lex (europa.eu)
This is probably why Finland and Sweden are starting to look at NATO, at least as far as popular sentiment is concerned, its more of a sure thing.