Tons tons of people were working on special. Hilbert had sent a paper on nearly every part of it in n before Einstein, it got delayed at the publisher, Einstein submitted his, then Hilbert sent in an updated manuscript with the same results before Einstein published. As a result of this there was a lifelong priority cold war between them.
Hilbert derived general relativity 5 days before Einstein [1]. Einstein won the public relations difference because his previous work.
It was that close.
Recall Hilbert was vastly better at the math, and was catching up leaps and bounds on Einsteins intuition at the time.
Dozens of others were also close. Minkowski, Cartan, Poincare, all were doing the same stuff, trying to unify the same items.
So had Einstein done nothing, many others were immediately going to reach the same results.
[1] https://en.m.wikipedia.org/wiki/General_relativity_priority_...