There's nothing wrong with pushing to main, as long as you don't blindly treat the head of the main branch as production-ready. It's a branch like any other; Git doesn't care what its name is.
Yea ofc I was implying that main is the branch that is pushed to production.
Yea ofc I was implying that main is the branch that is pushed to production.