Is there a way to remove 'needs' when overriding an included job?

My question in short:

Is there a way to remove needs when overriding an included job?

Explanation

The needs: ["dep-a", "dep-b"] job property is inherited when using the include directive.

When overriding this job, setting the needs to an empty array causes the runner to think this job has no dependencies and can be run immediately. This also causes artifacts to be missing from earlier jobs (since they potentially haven’t been executed yet)

Setting the needs to null will cause the gitlab-ci.yml schema validation to fail. (But it does solve the problem)

An example

The parent pipeline:

stages:
  - build
  - verify

some-needed-stage:
  stage: build
  script:
    - do_something

sonar:
  stage: verify
  needs: ["some-needed-stage"]
  script:
    - mvn sonar:sonar

The pipeline (which includes above file):

stages:
  - build
  - verify

include:
    - project: org/shared-cicid-pipeline
      file: above-pipeline.yml

sonar: # note that this has the same job name as in the parent
  stage: verify
  needs: [] # <-- this is the point, how to get rid of inherited needs?
  script:
    - run project specific analysis