Weeks ago, when this seaside metropolis had recorded fewer than 10,000 cases of the novel coronavirus and there still appeared to be time, some of Brazil’s most respected scientists made their last-ditch appeal. The country had reached a pivotal juncture. Cases were skyrocketing. The hospital system was teetering at capacity. Thousands had already died.