I have never had my carry on weighed or measured on AV. Having said that, I'd go on the direct flight. A late flight is better than a 5 hour layover in PTY. The lounge in PTY (I assume it would be the COPA lounge but not sure) is not one that I would like to spend 5 hours in and since you don't need XP there is no reason to go to PTY.