The story of Empresas Cablevisión SAB and JPMorgan Chase & Co. reads like a soap opera.

The bank had arranged to sell a 90% share in a $225 million loan it had made to longtime client Empresas Cablevisión. The buyer was the Mexican cable company’s archrival — which would be buying access to Empresas Cablevisión’s business plan and control over its investments.