No, it wasn't like Vietnam. The USA had the aid of no less than three rivals of the UK able to squeeze it in far more critical areas and providing direct intervention on US behalf, fighting the UK openly. The British conceded independence but maintained forts and supporting their own Native allies against the USA, and in the War of 1812 the USA was in the Pollyanna view stalemated, in a realistic view it got drubbed on land and sea.
The UK recognizes the Confederacy, brings one of the best armies of the time, and strangles the US economy.....the USA's waging a large-scale Civil War and was vulnerable to economic pressure to sustain said war. This is akin to British intervention in the Taiping Rebellion and with the same result for the side it intervenes in favor of. Of course the US Dolchstosslegende will attribute its defeat to the British and refuse to see any flaws with how it fought the Confederacy....
In neither the ARW or the War of 1812 did the British gain anything of major importance. They ALREADY HAD the forts and the allies so they didn't gain anything and so it was a strategic loss. Again what did the British GAIN out of the War of 1812 outside battlefield victories? Nothing of real consequence. Great Powers fight wars for more than bragging rights!