This was veering toward a sadly familiar story for Naomi Osaka. But she didn't let that happen.