One exercise is not harder than the other. The difficulty of the lift comes down to the weight lifted, you can lift more with a barbell press but you also don't need as much stabilization with a barbell as you do with a dumbbell.