Batteries can mimic inertia better than physical spinning objects.

An operator in Australia has seen massive success and profits over the past few years using batteries to out-compete other grid stabilization. IIRC, they have already made enough to pay off the upfront costs. Even better, Australian government was super against the change, but now most places are positive on them because of the obvious success.