My textbook only considers two-dimensional scattering, so I will stick to that. When explaining Bragg's law, it states that the incidence angle and the scattering angle must be equal so that all trajectories from different atoms (from the same row) to a point $P$ in a screen are the same. Then, it says that between different rows separated by a distance $d$, the equation $2d\sin\theta=m\lambda$ must also be satisficed for constructive interference to occur.
What I do not understand is why do the incidence and scattering angles must be equal? Isn't it possible for $\theta_i$ and $\theta_s$ to be different, and account for the difference in trajectories so that it differs in an integer number of wavelenghts? It will end up as a system of equations somehow a bit more complicated than the expression from above, but I find it completely possible.