That is why you bring an Anti-Armor option, be it a secondary weapon, grenade, ability, or an anti-armor alt-fire. Its called being prepared.
If the person is so wholly unprepared then they should deal with a tough fight and have to look for flaws in the targets defense, because no defense...