Quick Question about Challenges

Going for the outfit challenge at the Museum (gold kodachi, double damage, health only, no pendant). Kuroki has always been the boss I'm worst at, and I hate the kodachi's moveset. I've put all three points from the level into focus-gain-on-avoid so that I can abuse the busted thigh-cut focus move. Considering also abusing the continue mechanic by alt-f4-ing each time I die so that I can immediately try the boss again without having to replay the rest of the level. Will the challenge still be completed if I do this, or do you automatically fail if you die, even if you use this exploit?