It’s worth noting that Ms. Williams has some serious scar tissue when it comes to this particular tournament. In 2004, she was subjected to some notoriously awful line-calling and umpiring in a match against Jennifer Capriati. In 2009, she suffered a self-inflicted wound when, at match point in a semifinal against Kim Clijsters, she lost her temper at a line judge, leading to a point penalty that resulted in her automatically losing the match. In 2011, in a final against Samantha Stosur, Ms. Williams lost a point for yelling, “Come on!” after hitting a forehand that appeared to help her regain her momentum in a game she’d been losing. She went on to berate the umpire, calling her “unattractive inside,” and was hit with another code violation.

All of this U.S. Open history, combined, perhaps, with always feeling like an outsider in the game of tennis — I know exactly how that feels — goes some way toward explaining why Ms. Williams reacted the way she did, and most of all, how she just couldn’t let go. But what is clear is she could very much not let go.

Much of the coverage has focused on what happened when Ms. Williams confronted Mr. Ramos a second time, demanding an apology and calling him a thief. Mr. Ramos handed Ms. Williams a third code violation — which cost her a whole game. After a long confrontation, play resumed. Naomi Osaka went on to win the match — her first major title, and the first major title for Japan as well — under an onslaught of booing and drama the likes of which, as far as I know, we have never seen in a final of a Grand Slam.

It’s difficult to know, and debatable, whether Ms. Williams could have gotten away with calling the umpire a thief if she were a male player. But to focus on that, I think, is missing the point. If, in fact, the guys are treated with a different measuring stick for the same transgressions, this needs to be thoroughly examined and must be fixed. But we cannot measure ourselves by what we think we should also be able to get away with. In fact, this is the sort of behavior that no one should be engaging in on the court. There have been many times when I was playing that I wanted to break my racket into a thousand pieces. Then I thought about the kids watching. And I grudgingly held on to that racket.

Ms. Williams was absolutely marvelous toward Ms. Osaka after the match. A true champion at her best. But during the match — well, enough said. The way Ms. Osaka carried herself both during and after the match was truly inspiring.

So is there a double standard in tennis?

We do need to take a hard look at our sport, without any rose-colored glasses, and root out any inconsistencies and prejudices that might be there. Tennis is a very democratic sport, and we need to make sure it stays that way.

But it is also on individual players to conduct themselves with respect for the sport we love so dearly. Because we all look so forward to the next time Ms. Williams and Ms. Osaka play each other; hopefully the drama will come from their magnificent shots and their fierce competitiveness — two athletes showing us how it is done, inspiring us all in the process.

Martina Navratilova is a broadcaster, former tennis champion and human rights activist.

Follow The New York Times Opinion section on Facebook and Twitter.