for the semantic differences, we have: the docs https://www.autohotkey.com/docs/objects/Object.htm#MinMaxIndex
as for whether its more efficient, i dont know. one calls a method and the other doesnt call a method but has to evaluate 2 ternaries. i doubt ud be able to tell which is slower in realworld test cases. in synthetic benchmarks, there might be a difference