TL;DR
Make game place undergorund pipe | belt sooner if target location is blocked.What ?
When dragging power poles game is placing them at max wire distance -or- little bit sooner when target tile(s) are occupied so wire is still attached.Do simmilar thing for placing underground belts/pipes (exit will be placed sooner if target tile + tile directly after target tile in pipe/belt direction is occupied)