Basically they are.
Article 45 of the eu-charta works like article 5 of NATO. So if Finland gets attacked eu will join. And that will drag nato in.
And your map still has UK as member. They are out
The EU treaty(ies') provisions on defence are much weaker than the Art 5 provision of NATO. I wish that it were not so, but it is.
A real problem for both NATO and the EU is if 'blocking' nations become members. So let us say that a nation beginning with H were to become a EU or NATO member and then perennially block any criticism of, or sanctions on, Russia. Such things do happen, and it is quite a relief to see Hungary under Victor Orban for once not blocking these sanctions. Orban is of course comprehensively pwned by Putin. However even if considerable pressure has been brought to bear on Orban by EU/NATO that still has not been enough to get Hungary to fully co-operate, and Orban is in fact refusing to allow resupply of Ukraine across the Hungarian border.
Another similar country of worry is Serbia, and it is one of the unstated reasons that the EU (and NATO) are very reluctant to let a Russian proxy become a member state of either organisation. If you look you will note that Serbian airlines are still merrily flying to/from Russia despite EU airspace being closed to Russian airlines. So Serbia is being used to allow Russian circumvention of the EU sanctions.
A similar problem is (or was) for the EU the problem of Londonistan, where the vast majority of dirty Russian money was being laundered in London, and London is in fact the biggest granter of golden passports. It is no co-incidence that the UK is slowest to act on anti-oligarch sanctions. I have heard it whispered that it is now far easier for the EU to obtain unanimity on anti-Russia sanctions now that the UK is out. Nothing at all to do with the fact that Brexiters such as Johnson/Farage/etc are all pwned by Putin, no, move along there.
(As an aside, it was Margaret Thatcher that was the key - and critical - proponent of a "gas for peace" pathway that led to the main strategic thrust of the energy supply pipelines back in the beginning, even before the Cold War ended and the Berlin Wall came down. The UK is deeply implicated in all this I am afraid.)
The biggest blocker for Ukraine becoming a NATO/EU member are concerns of this nature. Letting a corrupt Russian puppet such as Yanukovich (ex-President of Ukraine) inside EU/NATO is a real worry. That is exactly what Russia has been trying to do, and succeeding on, for 20-years under Putin. Ditto problem in Belorus, Georgia, Moldovia.
Another - related - issue is that staggering lack of understanding of peoples out there about all this, and the extent to which they are constantly being used. I am daily gobsmacked by the naivety of people and how ill-informed they are, even now.
The EU’s work on its Strategic Compass should include debates on the special status states’ future role in European defence…
ecfr.eu
eur-lex.europa.eu