EGPWS has an output when it is in an alert condition (caution/warning) that is connected to TCAS inhibit input. So if EGPWS is alerting, TCAS cannot alert until EGPWS alert has completed. But it certainly is possible (as said earlier) to get a TCAS alert followed by and EGPWS alert, or to have EGPWS alert interrupt a TCAS alert.