it's not about dodging attacks, it's about doing enough damage before she pops out of existence regardless of the timer
i even used marisa and that wasn't enough
I’ve found I’m consistently able to beat her with all shot types if I lose all my lives in Stage 1 to get the Full Power item, and then use the invincibility cheat to make sure I can hit her without missing any bullets.
Reimu-Needle is probably your best bet for damage, and I was able to beat her without the cheat engine with it, the fight’s just a bit precise without the cheat.