spoilers:end of spoilers
It's weird that this is the second Avengers movie that made it look like Clint was going to die, only to have someone else die in his place.
In Age of Ultron the writer/director deliberately put in a lot of obvious hints that Clint would die, but then pulled a bait-and-switch by having Quicksilver die to save Clint. And pretty much exactly the same thing happened here.
There's also some strange crossover with another moment from Age of Ultron where Natasha and Bruce commiserated about not being able to have kids. It was heavily implied in Endgame that Natasha wanted Clint to be able to reunite with his wife and kids.
I don't think either film's team was trying to imply that Natasha's life is less important because she doesn't have children, I just think they lean too heavily on the idea that if Clint has a beautiful wife and adorable children, he deserves to live.