Honestly, some more information would be needed to make any sort of recommendation. For example, what type of work/work apps would you be using? Will you be using this primarily plugged in on a desk or when out and about? For Logic Pro, how intensive are your projects (i.e., how many tracks, effects, etc.). The M2 Pro would likely be the better option in terms of battery life when off AC power, but the M1 Max might perform slightly better in Logic Pro.