For inflammatory pain (most headaches, most pain from injuries), ibuprofen absolutely works better. For migraines, neither works at all on its own -- though ibuprofen plus caffeine (I generally drink tea) does a little. For overexertion aches and cramps, or fevers, I think either is generally fine.