We present a comparative study of two nearby type Ia supernovae (SNe Ia), 2018xx and 2019gbx, that exploded in NGC 4767 and MCG-02-33-017 at a distance of 48 Mpc and 60 Mpc, respectively. The B-band light curve decline rate for SN 2018xx is estimated to be 1.48 ± 0.07 mag and for SN 2019gbx it is 1.37 ± 0.07 mag. Despite the similarities in photometric evolution, quasi-bolometric luminosity, and spectroscopy between these two SNe Ia, SN 2018xx has been found to be fainter by about ∼0.38 mag in the B-band and has a lower 56Ni yield. Their host galaxies have similar metallicities at the SN location, indicating that the differences between these two SNe Ia may be associated with the higher progenitor metallicity of SN 2018xx. Further inspection of the near-maximum-light spectra has revealed that SN 2018xx has relatively strong absorption features near 4300 Å relative to SN 2019gbx. The application of the code TARDIS fitting to the above features indicates that the absorption features near 4300 Å appear to be related to not only Fe II/Mg II abundance but possibly to the other element abundances as well. Moreover, SN 2018xx shows a weaker carbon absorption at earlier times, which is also consistent with higher ejecta metallicity.