Burnt Calories Vs Exercise Time

Is either one more important? I mean! Is there a difference in working out for 30 min moderately and burning 250 calories vs working out vigorously for 20 min and burning the same?