Panama beat the Dominican Republic 4-2 in a lively friendly, with goals, tactical switches and World Cup preparation lessons on both sides.