It depends on cost, performance and startup time needed for your use-case.
Serverless compute is usually preferred choice because of its fast startup time and dynamic scaling. However, if your workload is long-running and predictable, job compute with auto scaling might be more cost-effective.