Either one of these will work because they act as thickening agents for the sauce. Cornstarch has a bit more 'thickening power' so it requires half the amount to reach the same thickness compared to flour.