The verdict
Same joint actions, hip extension and knee extension, and both are compound barbell lifts, but the records pull them apart. The deadlift is listed as a pull at intermediate level, with the glutes, hamstrings and lower back as primary and the quadriceps, upper back and traps and forearms as secondary. The squat is listed as a push at beginner level, with the quadriceps and glutes as primary and the adductors, hamstrings and lower back as secondary. The deadlift moves the most weight of the big barbell lifts, so the record says form matters before load; the squat is the anchor lift of most beginner barbell programs. Neither replaces the other: pull from the floor for the back of the body, squat for the front of the legs.
Muscles, equipment, force and level from the PasteLift exercise library records for the deadlift and the barbell squat. Sets and reps from the ACSM position stand, cited below.