There are plenty of papers which look at precisely the economic and carbon tradeoffs of these sorts of processes. It all just depends on where you are. When you have a clean grid and a cheap grid, these methods become pretty feasible.
Take a look at De Luna et al, Science 364 2019 [1]