Neither of those two pipes will "move" so there is absolutely no problem with them touching. Soldering them together would also be acceptable.
How close can copper pipes be?
Example - Support of Copper Tube
The maximum distance between the horizontal supports of a 1" (28 mm) copper tube is 5 ft (1.5 m).
Can hot and cold pipes touch?
Hot and cold PEX water lines run through the same hole in a stud wall. ... This is not a typical installation; both pipes should have their own holes to pass through the framing.