If that was true the drug companies wouldn’t market to doctors.
They market to doctors to make them aware of and give them literature and sometimes samples of various name-brand drugs. all to encourage them to prescribe them. the cost of the drugs is likely irrelevant unless something is being pushed as an affordable alternative. Obviously the doctor has some idea he’s not working in a vacuum but that is not his primary concern.