How to butt weld 2 pipes together straight?

What about inserting a slug between the pipes? It would make it strong and straight at the joint.

Just get a pipe that has the same OD as the ID of the two pieces you are joining together.