Subaru Impreza and Crosstrek are a good example of that. Same engine, same electronics, same everything except a slightly differently shaped shell on the outside. Even the interior volume is practically the same!
I always disliked the crosstrek since it’s a heavier Impreza on an already dogged engine but they are/were the only manual version so some people were buying them for that.
I can think of worse things for a crossover to share an engine with.