You can't match strategy, the guy behind has the choice. Hamilton cuts into the pit lane at the last second Massa and Bottas are already past the pit entrance, they can't cover it. If they pitted first Hamilton stays out and does a blistering lap with one less car in front of him.
Merc have way less tire deg than Williams so can simply afford to choose to pit earlier than them as well.
Williams had no chance, they've lost out pitting first, and when pitting after I think every time since start of 2014. They don't have the pace, Merc were way faster, pit stops will cause clear air for the faster car be it staying out or pitting first. You can't change that simple fact. Either car pitting creates clear air for the faster car who will then make the times required.