I think Arduino and ESP32 have different goals. One is more of an educational tool targeting children and adults to automate simple stuff and learning to program microcontrollers in a simplified way and the other is focusing on more industrial solutions where performance, price and flexibility matters.
So I am not sure they are competitors. Like Intel and Raspberry Pi aren't competitors as they address very different markets.