Upvote:2
Timatic says:
TWOV (Transit Without Visa):
Passengers transiting through Mexico City (MEX) with a confirmed onward ticket for a flight to a third country within 24 hours. They must stay in the international transit area of the airport and have documents required for the next destination.
So TWOV is apparently only possible if your only connection in Mexico happens in Mexico City airport (MEX), not in Cancun.
In addition, you need to stay airside, so this means you cannot claim luggage and check it again (which you would need to do if you have hold luggage and you are "self-connecting" flights on different bookings/tickets) or even go to a check-in desk (which you would need to do if mobile/online check-in is not possible and you are self-connecting).
In any case, I don't see any direct flights from Cancun to Nassau (or from Mexico City, for that matter). What is your actual planned itinerary, and what are the airlines involved?