In this case, force-pushing is OK. Git is preventing you from pushing normally as a safety mechanism to prevent you from accidentally overwriting your original branch. But in this case, you actually do want to overwrite it.
The only other case where a force-push would not necessarily be a good idea is if your branch was being shared with other people, who have copies of your old commits. Even in this case, a force-push is a feasible option, but it just means that everyone who has your old commits has to redo or rebase their work on top of your new commits, which can be difficult to coordinate, and a lot of extra work.