You can set the OData service in the catalog to the status Discoverable= false.
Then the service is published, but not available via the catalog and the OData service can remain available in your app.
See: https://docs.mendix.com/catalog/manage/curate/#discoverability