I doubt that you will find a nice answer; the answer can not involve global properties of the functions since the equality depends only on the function values near the suprema and the functions are free to do whatever they want away from the suprema whether the equality holds or not.