Sometimes enemies are Invulnerable by having a Buff, but not always, like Garuda for example is invulnerable for some time when she comes back but doesnt have an invul buff.

there are also two types of Invulnerability, one where you just do 0 damage but you can still generate resources, and another where you don't

I wish this was more consistent.