Is it an okra plant? Or a malva (?)(dwarf hollyhock?)
NO! Okra is related to the Hibiscus and the okra flower looks similar.
https://www.almanac.com/plant/okra
DIfferent seed pod, too, and it looks like a green banana, not a round thing with spikes.
This IS a weed. Here's the deal, if you can pull it out, do so. If you cannot, try soaking the ground and pull. IF neither works, dig down 4 inches, saw it off and shove cardboard in. It will not grow back.
WhatEVER you do, pull the flowers right now and don't let it go to seed, or it will spread.
Btw, in the photo in that link, IF you let the pods get long and light green they will be too tough to even slice with a knife, much less chew. These are only useful for saving seeds. I have not been able to do this successfully, so maybe somebody else here can give me some advice.
If you grow okra and have a super wet week, sometimes the really long pods are easy to cut and easy to use.