Links from niche relevant blogs do work better, but that doesn't make a general niche one kind of harmful or spammy,
If you aim for some links from decent websites, do pass link juice and help to rank for sure,
The difference is just like the recommendation of a lawyer for some doctor versus a doctor for another doctor,
Both do count, but doctor recommendation would simply matter more