It’s a technical challenge but I wouldn’t rule it out. Apple has been using a “neural engine” in their SoC for faced id, etc. for a while. So it’s something they’ve been working on. It will need to get better, but AI models are also getting more efficient.
Depends what you mean by same port. A reverse proxy would allow you to expose everything over 443 and then the proxy would route to particular app ports and hosts.