That's fine if you don't want her to greet. But you can use a dog's desire to greet to help condition that calm. You're the one that knows she won't be greeting the dog. But to her, every step towards the dog is progress while every step away is a step backwards from what she wants. You can easily use that to your advantage - she only gets steps towards what she wants if she practices the behavior that you want.
That, coupled with taught behaviors such as a heel and watch me helps guide her into the behavior that you want. That way she learns that the more she walks nicely and keeps her attention on you, the closer she gets to go to that other dog. But if she whines, pulls, or breaks her focus, she is immediately taken away from it. Once she's back at a distance she can handle, you set her back up and go again.