The ability to filter for an applied scenario using the SEARCH endpoint of the REST API was recently added. The UPSERT endpoint should get the same capability to save one additional request:
https://sdk.plauti.com/docs/rest-api-search-for-a-record-in-salesforce-input-output
https://sdk.plauti.com/docs/rest-api-upsert-using-duplicate-check-search-input-output