Only HDMI 2.1 introduced link training (before that it was just the source picking a resolution that the sink supports and hoping for the best!), but even that is an end-to-end thing; the cable is not part of the conversation, so you wouldn’t know if the cable is bad or the socket/internal wiring beyond the cable on either side.