It's not intelligent to substitute anchovies for sardines or the other way around. These two Fish carry on distinctively when cooked. Anchovies will soften away, enhancing the whole dish with flavorful pungency. The thick substance of sardine will not break down as an anchovy filet will.