Studies have actually been done that have shown that since both of them are squats they don’t really activate muscles differently (except that the front squat is better for the quads). Here is a link to the article that stated this: https://www.kommitted.com/back-squats-or-front-squats-for-better-legs/