I'm not suggesting immediately starting to dose millions of people with it. I'm suggesting massively ramping up production so that if it turns out to be useful, we can at that point immediately start dosing millions of people with it.
I think it likely that the cost of massively increasing hydroxychloroquine production would be a drop in the bucket compared to the total resources being spent on tackling the crisis. So even if the drug turns out to not be effective, the attempt to mass-produce it would still have been a rational gamble.