Given the timing of Biden's decision to drop out, a Democtatic Party primary would have probably been a cluster ****. An alternative could have been a meeting of the Party's Central Committee to choose a nominee. That decision would have created similar criticism.
The best possible solution was gone when Biden decided to run for re-election.
Of course, this is all hindsight.