Artificial intelligence (AI) models for breast cancer diagnosis, particularly invasive ductal carcinoma (IDC), often struggle to generalize to real-world pathology workflows, especially in resource-limited environments where datasets are small, imbalanced, and derived from conventional photomicrographs rather than whole-slide images (WSI). This study evaluates the robustness of deep learning models under domain shift using such real-world data. A comparative experimental design was employed using three deep learning models: WaveMix with Laplacian Shot, Vision Transformer (ViT), and Data-Efficient Image Transformer (DeiT). The models were trained on the imbalanced BreakHis dataset (140 benign and 896 malignant images) and externally validated on independent Indonesian IDC photomicrographs to assess real-world generalization. Model performance was assessed using sensitivity, precision, and F1-score, with interpretability evaluated using Grad-CAM. WaveMix achieved the highest generalization performance, with an external F1-score of 0.93, while maintaining strong sensitivity on both internal and independent external datasets. By contrast, ViT achieved perfect internal accuracy but failed significantly under domain shift during external validation (recall 0.02). DeiT showed moderate robustness (external testing F1-score 0.49). Grad-CAM confirmed that WaveMix captured clinically relevant histopathological features. WaveMix with Laplacian Shot provides more reliable domain generalization for IDC diagnosis from conventional photomicrographs than transformer-based models. These findings demonstrate that integrating WaveMix with Laplacian Shot improves robustness under domain shift and class imbalance. External validation using real-world photomicrographs highlight its clinical applicability for IDC diagnosis in resource-constrained settings and underscore the importance of evaluating AI models beyond internal benchmark performance.