You could possibly divide that 20g, maybe using a clear divider or the DIY craft mesh and see how the Betta reacts to movement on the other side?
That way you could get the Corydoras and keep the Betta Separate if needed?
Kojin's Keeper Since 08/11/2018
Ouro's Keeper Since 13/12/2018
Opal's Keeper Since 21/01/2019
Rose's Keeper Since 11/03/2019