Android to Android: Use WhatsApp's built-in Transfer Chats feature, which uses a QR code or cable connection for a direct transfer.
iPhone to Android: Use WhatsApp's official wired transfer method. On your iPhone, go to WhatsApp Settings > Chats > Move Chats to Android and follow the instructions, connecting the phones with a Lightning-to-USB-C cable.