At my local Coles supermarket, AUD 1.40 (USD 0.99) buys 2 packets of 20 tablet 500mg paracetamol. Swallow 40 tablets, take a 20 gram overdose. For a person who weighs 80kg, that's 250 mg/kg. That kind of overdose is likely to lead to acute liver injury; prompt treatment with NAC will avoid it, but without prompt treatment, acute liver failure is a likely outcome.
At the same supermarket, AUD 3.10 (USD 2.19) buys 2 packets of 24 tablet 200mg ibuprofen. Swallow 48 tablets, take a 9.6 gram overdose. For a person who weighs 80kg, that's 120 mg/kg. [1] reports that level of ibuprofen overdose is likely to produce mild CNS and GI symptoms. Fatalities have occurred with >300 mg/kg, so an 80 kg person would need to take over 24 grams, which is 120 tablets, 5 packets worth (cost AUD 7.75, USD 5.48). So you can immediately see how ibuprofen is safer than paracetamol, in that you have to swallow a lot more tablets to take a potentially fatal overdose. Given that, I think a case could be made for withdrawing over-the-counter paracetamol while continuing to allow over-the-counter ibuprofen.
Cannabinoids such as THC and CBD also provide pain relief, and certainly if we are just looking at overdose acute toxicity are far safer than either ibuprofen and paracetamol – indeed, there is no record of any fatal overdose ever happening from either. And yet, where I live they are only legally available on prescription, and prescribers face regulatory hurdles which do not apply to other drugs. If we are only thinking about safety in overdose, we'd make both ibuprofen and paracetamol prescription only, and allow THC and CBD over-the-counter instead.
[1] https://litfl.com/nsaids-toxicity/