S. Thomas Aquinas (Summa I qu. 108) seems to solve this question in accordance with the second of these alternatives.