Honestly, there is no perfect answer here. Stopping inflation protects what our money can buy, but risking a recession means people lose their jobs. Both choices carry heavy consequences.
Inflation first also protects trust in the currency. If people expect prices to keep rising, it becomes way harder to unwind later.