Where to unscrew this kitchen faucet
I recommend BOTH. You need to disconnect at the top (green arrow) to remove the existing faucet, but while you are at it you should disconnect those flex supply lines and replace them with high quality braided stainless steel flex lines.