WebSockets works over TCP. Oriented to client and server communication.
WebRTC DataChannel works over UDP. It seems safe to use. It is more oriented to peer2peer communication.
I don't think there is a massive difference in latency. It is up to you if you need reliable delivery (TCP) or not (UDP).