To keep things simple, I'll not talk about factors like density altitude, surface, and wind shear. In simple terms—all else being equal—if we have a choice, we would opt to land uphill and take off downhill. The up-slope will shorten our landing roll, and the down-slope will shorten our takeoff role.