It's more about staying away from certain compounds that aggravate hair loss more than others. Any DHT is probably the worst for your hair whch includes things like Masteron, winstrol, Anavar, etc...
Also Tren tends to be one of the worst for the hair as well
What matters most is your genetics. Those that are prone can take any steroid including low doses of test and have some shedding. Then there are people that aren't prone that can stack high doses of DHT and never have an issue