How inferior are the generic drugs compared to branded drugs? Are we justified in prescribing generic medicines to trusting patients, simply because the doctors own the shops and get huge margins of money?

Kindly give your opinions.