The highlight of my early 20s was embracing the hedonism treadmill as a rejection of "imposed morals", only to spend countless hours trying tons of self help books and listening to podcasts about discipline and grit and motivation and positive thinking, etc.
At some point, no matter which path you take, you'll find good secular justification for limiting your exposure to toxic people in life and limiting your swearing to improve your vocabulary and avoiding processed food, short term hookups, sleeping well, helping others, meditating, saying affirmations, thinking positively(using faith to counteract "rational evidence" that something will fail or wont work) and so on.
You're following so many rules (self developed through experience and knowledge) that it gives you more appreciation for how the different religions were themselves using heuristics developed over thousands of years of trial and error to give you an optimal set of rules that would more than likely produce the best outcome for your life, given the environmental constraints and lack of scientific knowledge at the time. It was not simply "sky daddy made rulebook"