I think this is not about this site per se. But more of how different members uses it.
If you have limited knowledge in an area, and ask a question here, all you want is an answer that is inline with your view of the problem / context.
It is hard for that member to know if an answer is incorrect or correct (they need to look at the sources provided, and somehow also evaluate if what the answers say makes sense).
I can not express my opinion about this specific case, but it looks like you found a way that is not very well documented but probably works.
All you can do in this case is to try to point this out to the user, and hope that he /she will mark your answer as opposed to the other one.
Hopefully the community can also help you, and future readers, out by upvoting your answer to make it clear that it is indeed possible.
Generally, this is something that is up to the members of the community: to overtime correct by using the power of comments and up-/downvotes.