Sardines are larger than anchovies with a white flesh and a less intense flavor than the anchovies offer so it will not add the same flavor. Anchovies are known for a umami-rich flavor. You're better off just leaving out the anchovies and using garlic and capers.