That said: dark matter is no more a “hack” than the discovery of Neptune or Alpha Centauri C: the existence of both were inferred from deviations from theoretically expected gravitational motion, and only later confirmed by direct observation. If Neptune did not exist it might have implied Newton’s equations of gravity were wrong - but it’s existence and correctly-predicted mass were instead a major validation of those laws. So I think the dark matter hypothesis and the subsequent research activity are fully justified areas of scientific inquiry.
[1] https://link.springer.com/article/10.1140/epjc/s10052-021-08...