Here is a goal: how to cook pasta

Which way makes more sense to accomplish this goal?

Options are:
(A). fill a pan with double the water to cover the pasta, add salt to taste and bring it to the boil. Carefully drop the pasta into the boiling water and cook for 10-12 minutes, making sure to stir within the first two minutes of cooking to prevent sticking..
(B). add two onions to the pan of boiling water, and stir until softened. Remove and drop in the pasta, and cook for 8-15 minutes, stir at the last six minutes to prevent sticking to the side of the pot..
(A).