The US was the defender. The attack was to be two-pronged--up Long Log Lane to Baltimore and with landings elsewhere, blocked by Ft. McHenry. The British had gone far past the 1/6 insurrectionists in destroying American democracy, burning the Capitol and the President's house, along with a lot of DC, a few weeks before.
Now they wanted Baltimore, because it was in the way of securing a much better position in order to defeat and retake the "colonies." They were thwarted in their land attack, from Todd's estate up Long Log Lane to North Point. Stricker defended their positions and drove the British back. They burned the plantation house now on Todd's Estate, but it was rebuilt--from there you can see down the Chesapeake Bay all the way to the Atlantic. The British were also thwarted in the Ft. McHenry didn't fall and the British ships didn't achieve their military mission.
Long Log Lane is now North Point Blvd and ran in front of my high school, it was just about the only way out of the community I grew up in. My chemistry teacher got the Todd Estate placed on the register of historic places (and I don't know how many pages of deeds and grants and letters from the 17th century I transcribed with my girlfriend to help out). My jr high was General John Stricker, and in building the school they found a lot of cannonballs and other things from 1814. When the British left Todd's Estate, they didn't burn the slave quarters; those still stood in the 1970s, built in the 1600s.
I have no problem with military force to resist unjust, unsolicited, revanchist oppression.