I don’t think that you can do this for different cases of the same field used on the same page. The only time you’d be able to alter this is when the field is loaded using an acf/load_field filter. This would effect the return value wherever the field is used after that, but you could set it dependent of a specific page, perhaps.
The best choice would be to always return both and then use the one you need.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users