This is far from my area of expertise, so I may be completely misunderstanding things. My understanding is that mysqlnd is, effectively, a replacement for mysqli, which is basically API-compatible, so the same PHP script should run with either. Is my understandingn wrong? On the RPi-3B, which I was using until recently, I used mysqli and had no problems. Anyway, whether I install mysqli alone, without mysqlnd, or install my mysqlnd alone, without mysqli, when I run my PHP script using php-cli, I get: "Fatal error: Uncaught Error: Class "mysqli" not found...".
I would be thrilled to find out I am just an idiot, and doing something stupid. That would be the best solution!