That is undefined, and type-A to type-A cannot work.
For USB3 type-C connector the two ends of the cable “seem” to be swappable. In reality, the wiring used in a type-C implies one end will still be in host mode, and the other end in device mode (type-C adds more wires…the connectors appear to be uniform, but the wiring used is not).
If we talk about type-A, then that end works only with a host, and the other end must be type-B, and that end must be device mode.
There is no possibility of a type-A to type-A cable, the wiring does not contain any ability to interact with a device, and pairing host-to-host is undefined.
The “On the Go” port (“OTG”) is a special USB2 port. The micro-OTG connector can accept either a type-A micro connector, or a type-B micro connector. However, there is an ID pin for detecting which type of connector has been inserted. The cable itself will not violate the mandatory requirement that one end be type-A (host mode), and the other end being type-B (device mode). The OTG port can be used for this purpose if that port is in device mode, and talks to a host with a type-A at the other end.