To be clear, you're looking for a solution for how to intercept a UART connection internal to the DUT?
Another option, since you don't really need an
analog switch here: a 3-input configurable logic gates configured as a 2-to-1 digital mux (eg 74LVC1G97). May or may not be cheaper, but does preserve drive strength in the event you need it, and they're very useful parts in general.
But the simples solution would be to just put test points directly on the link, with series resistors between each Tx pin and the test points. Like:
MCU1 TP MCU2
Rx <--------o--- R --< Tx
Tx >-- R ---o--------> Rx
The series R allows the test fixture to override the Tx line of the corresponding MCU. This relies on there being a value of R that limits current (and power consumption) to an acceptable level without destroying your signal integrity. That's probably not a big deal for a modern MCU and any common UART data rate.