Gliders have FLARM, planes have mode C. Pay attention
Nobody is saying the technology is perfect (unless maybe you have TCAS). However it would certainly be useful in addition to looking out, especially in this case where (apparently) it would have been physically impossible for either plane to have seen each other.