Deterministic versus Stochastic Contracts in a Dynamic Principal-Agent Model