Unallowable costs are excluded from the pools but kept in the bases. That way the base is never fractured.
Since version 3.22.0 there is no separate Charitable checkbox. Enter a charitable contribution as a G&A expense and check Unallowable, which already keeps it out of every pool and base. Saved files that carried a Charitable flag open as Unallowable (see What happened to the Charitable checkbox?).
This article explains what Rate Studio does with a flag. Whether a particular cost is allowable is not something Rate Studio decides for you.
If this doesn't work: if a cost isn't behaving as expected, see My calculated rate doesn't match what I expected.
Watch: MSOH and G&A, unallowable costs from 2:29
Full guide section: Enter Cost Data
Related: How do I enter cost data manually? | What happened to the Charitable checkbox? | How is the G&A base determined?