What’s the difference between caponata and ratatouille? Pesto and chimichurri?

Can anyone else think of two dishes super similar that are versions of eachother that originated from a different country?

What’s the difference between caponata and ratatouille? Pesto and chimichurri?
Post Opinion