That's not going to happen. The following is one of the basic truths of patents -- I didn't make it up, but I can't remember where it came from so I can't give proper attribution.
-- That which infringes if later, anticipates if earlier. --
The very moment you convince a judge that the earlier method infringes, he/she has no choice but to declare your claim invalid as anticipated (not novel). My own extension of that is:
-- That which infringes under the doctrine of equivalence if later, makes obvious if earlier.--
At least that's what one of my law school papers suggested (as to how the doctrine of equivalence ought to work) and at least one dissenting opinion somewhere agreed with me. It doesn't work that way, though. But that's too big a topic for this particular thread.
You shouldn't get a claim that your hypothetical says you got. Each and every limitation in your claim is in the prior art. What you would need is some sort of negative limitation. I remember they were supposed to be taboo at some point, but I've been successful in getting claims with negative limitations from time to time.
What you would need is something like "limitation D without the intervening step of limitation C." The argument would be that the prior art doesn't enable that particular method without the intervening step of limitation C, so your improved method is valid and allowable.
That's really a tricky thing to do, but experienced practitioners can do it and do do it on a fairly regular basis. Common ones for the computer arts are "without user/human intervention" when something that used to be manual is now automatic.
When possible, it's better to avoid the negative limitation by having direct links between elements recited in the steps. It's a bit early here, but I'll try to give an example:
Suppose your limitation B includes forming a cryptographic hash of some information. Suppose further that limitation C in the prior art performed a step on the cryptographic hash to form a modified hash. By reciting in limitation D that the step works on "the cryptographic hash" rather than "the modified hash", you've effectively eliminated limitation C as a possible intervening step, but without using a negative limitation.
Of course, the problem with that is that the modified hash is probably a cryptographic hash so limitations B-C collectively are read upon by the new limitation B, but hopefully my example illuistrates the technique. You have to be fairly adept at mental gymnastics to pull it off, but that's the way to do it.
I hope that helps.
Regards.