6.5-6.8 for soil, 6.0-6.3 for soilless...
if your fertilizer brand recommends differently, may want to start there initially. No matter what, the plant tells you what is right with its health and growth rate. Some recommend lower for soilless/hydro, but from what i see that just forces you to use a shit-ton of Ca to mitigate the pH (availability of Ca is reduced if too acidic), which can quickly fuck with other nutrients availability (see Mulder's Chart).
if using soilless/hydro products in soil, go with soilless pH range. This is more about the nutrients used and how it is delivered than the solid medium that absorbs water. soil fertilizers require microbes to break them down etc, and the 6.5-6.8 improves availability of N and more welcoming to the microbes that help. With soilless/hydro ferts, this N is already plant-available the moment it dissolves. No fixation or chelating of molecules needed for those products.
... like myco being useless for soilless/hydro context due to P concentration levels.. basically slows or stops myco growth. Just a gimmick on thos contexts and still a maybe with potential in soil. there are lots of generalizations out there that only apply to certain contexts.