We were looking into the case of the EFA fabric at AWS. What we provide in EESSI works with the fabric, but it is true that you get better performance with the libfabric version that they ship with the OS (Amazon Linux 2 in the case we investigated).
You can check this with:
LD_PRELOAD="/opt/amazon/efa/lib64/libfabric.so.1 /lib64/libefa.so.1" mpirun --mca pml cm osu_bibw
and compare that to
mpirun --mca pml cm osu_bibw
As things stand, we've only built in capabilities to switch out the MPI library, but it may be better/easier to switch out the UCX/libfabric libraries.