bitcoin-cli is generating a P2WPKH address (bc1...), but then on the user side you are generating a P2PKH address (1....).
You may also need to check to ensure the same address derivation path is being used (Bitcoin-core uses hardened derivation).
For more info on address encodings see:
What is P2PK, P2PKH, P2SH, P2WPKH - ELI5
What is the size of ...