Reproducing duplicate signups and oversold stock directly on Postgres makes it obvious why application-level existence checks always lose under concurrent load. Pushing uniqueness constraints and atomic updates into the database is way cleaner than adding retries on top.