I've been able to make tikz matrix look like basic tabular, but it implies the use of "text height=..." and "text depth=...", which need to be readjusted everytime a new font or a different font size is used. The problem when using "minimum height=..." with "nodes={anchor=center}" is that the horizontal alignment is broken. Without "nodes={anchor=center}" the cells are not aligned most of the time (it depends on the content of the cells), but the text is.
\documentclass[a4paper]{article}
\usepackage[verbose,vmargin=30mm,hmargin=20mm]{geometry}
\usepackage{showframe}
\renewcommand\ShowFrameLinethickness{0.15pt}
\renewcommand*\ShowFrameColor{\color{red}}
\usepackage{tikz}
\usetikzlibrary{positioning, matrix,calc}
\tikzset{
allmatrix/.style = {matrix of nodes, nodes in empty cells,
row sep=-\pgflinewidth, column sep=-\pgflinewidth,}}
\setlength{\parindent}{0pt}
\begin{document}
\begin{tikzpicture}
\matrix at (0,0) [allmatrix,matrix anchor=north west,inner sep=0pt,nodes={
inner sep=3pt,outer sep=0pt,draw,minimum height=6mm,text width=4mm}]{
a & b & c \
d & e & f \
};
\end{tikzpicture}
\par
\begin{tabular}{|l|l|l|}
\hline
a & b & c \
\hline
d & e & f \
\hline
\end{tabular}
\end{document}



nicematrix– muzimuzhi Z Mar 04 '22 at 08:54