My reading suggests Islam is very pragmatic:

Fasting is obligatory for every physically & mentally capable mature Muslim. Children (& some others) are exempt.

annual charity is an obligation on every Muslim who meets certain criteria (eg … wealth above a … threshold).