Would killing one be in line with EA if it can save 10?

Please let me know the flaw in my logic, or if it is sound. I’m a big fan of EA but this was brought up in a discussion with a friend and I’ve been mulling over it.

1. If donating $x to cancer research saves 1, but donating $x to against malaria saves 10, then against malaria would be the correct choice based on the belief in effective altruism, correct?

1.1 Assume that without that $x, the 1 or 10 people (in the group that the money was not given to) will die.

1.2 Assume also that you are fully aware of both options in 1 as well as the repercussions in item 1.1.

2. By donating to against malaria, by the opportunity cost you’re indirectly killing that one person with cancer.

3. Assume you had the option to directly kill 1 person to save 10 or directly kill the 10 to save 1. (Just a hypothetical, not advocated for as per forum rules).

4. In item 1, you are indirectly killing 1 to save 10. In point 3, if you choose the first option you are directly killing 1 to save 10.

5. In both situations, you had knowledge that saving the 10 would result in killing the 1.

6. The only difference is in the intent to kill that one person present in the second direct situation (item 3) but not the first (item 1).

7. If you are aware that you will be indirectly killing them in the second situation, then what different does the actual intent to kill make?

The first option in item 3 intuitively seems wrong, but it seems to fall in line with the beliefs of effective altruism, so can someone help me identify my flaw?