If the apostle, who represents Christ, in infallible, inerrant Scripture says women cannot exercise authority in the church, meaning, as you say, pastor or elder, but he gives an example them teaching with their head covered, prophesying, under the authority of the elders then, if that’s what Scripture teaches, I can’t raise an objection to that. Scripture is the last word on this.