The verdict
Neither wins outright. Both are barbell compound pulls through hip extension and knee extension, both listed intermediate. The rack pull starts the bar just below the knees, so it trains the lower back, traps and grip with heavier loads than a full deadlift, and it skips the hardest part of the pull off the floor. The deadlift starts on the floor and trains the whole back of the body, glutes, hamstrings and lower back as primary, and moves the most weight of the big barbell lifts. Pick the rack pull to overload the top half or build grip, and the deadlift when you want the full pull as your main lift.
Muscles, equipment, force and level from the PasteLift exercise library records for the rack pull and the deadlift. Sets and reps from the ACSM position stand, cited below.