Are you using a Santee like in the picture, or a combo?
Are you using a solvent weld (glued) p-trap, or one with a swivel nut. the swivel nut is not legal in a wall.
You can offset the standpipe if needed, or drill through to the next bay.
Most of the time, I drill through from a studbay nearby.
I also like to use a single box with valves and drain.