Yeah. As I said, I suspect the OP is talking either about ESP32-based dev boards, or at least ESP32-based modules (like the WROOM ones) - which are between $2 and $3. Still very cheap, but since the OP was considering directly using ICs (as I got it?), then they could as well make their own board with an ESP32 SoC (you can find them as low as $1 or so), but then they'd have to properly route it, then use a shield and take all measures to ensure it has any chance of passing conformance tests... yeah. But if they are ready and skilled to do that, why not.
There may be reasons not to use the ESP32 line for this, but cost is certainly not one.