Yeah, that's how I killed a Redmi Note 4 once, I was in a hurry so I forgot to choose the non-relock option in MiFlash and then the flash went bad, rip phone.
However I've heard that this EDL trick that was mentioned seems to do the trick, so try that OP!