I guess its not technology in itself that's the problem, the underlying issue is, and will always be, inequality. However, when all pupils go to class physically, the teacher can act as an equalizer, furthermore, the weaker learners may also profit from their stronger learning peers. Who hasn't experienced the following: you explain something that you merely understand to a colleague who has no clue, and the act of explaining and the colleagues questions give you more insight.
With distance or hybrid learning every pupil is on his/her own. Alone in the bedroom, in front of a laptop without the constant feedback of teacher and classmates.
Motivation? You're on your own, kiddo. No peers to do the homework with.
Why tech wides the educational divide, imho, is the reliance on tech, and not the existence of it.