In general it is harder to match in programs at desirable cities such as NYC, Chicago, SF. I suspect that having a fail on the transcript is going to be a problem. The most important thing you can do is nail your rotations and get excellent LORs. If possible, I'd leave my options open as to what cities I'd live in - you can always come back to NY to practice