What happens if all Earth’s coral dies?

All of it won’t die, because not all of it is in the increasingly toxified oceans. Coral will continue to be domesticated, and perhaps tweaked to improve its chances,