Geometry-Informed Data-Driven Mechanics