No, very few will invest in a direct competitor, other than very early-stage investors like incubators and accelerators that do too many investments to be able to worry about conflicts.
But sometimes, you may not have the whole story.
Just ask a VC. “I see you invested in Competitor. Is that a conflict?” Be 100% direct, it will be appreciated.
You’ll get a direct answer.