“I’d sooner starve than eat what they serve in the cafeteria” is less formal than “I’d rather starve.”