I think it's better to throw an API error if both options are set at the same time. Introducing an implicit preference violates the principle of least surprise.